From: nethack.allison Date: Thu, 7 Mar 2002 23:54:15 +0000 (+0000) Subject: slap against floor while riding X-Git-Tag: MOVE2GIT~3040 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=416331f4d1d1492541cb103cd68240f7f2c1c21f;p=nethack slap against floor while riding > Greetings! suggested I report this bug to you: > in 3.3.1, riding a horse while blind, I ate a bad carrot (to > unblind myself) and got the message, "Blecch! Rotten food! The > world spins and you slap against the floor." Upon regaining > consciousness, I found I was still safely mounted on my steed, > raising the question of what part of me could have "slapped > against the floor." I thought I would have fallen off my > horse, or at least have slumped against it. said in his > reply to me on rgrn: "Looks like Yet Another message that > fails to take riding into account; should be easy enough for > the DevTeam to fix, though, since it's one that's already > being modified for levitation and the like." Hope this helps. > Thanks very much! > --- diff --git a/doc/fixes34.0 b/doc/fixes34.0 index 2b2588a72..abbf5f247 100644 --- a/doc/fixes34.0 +++ b/doc/fixes34.0 @@ -451,6 +451,7 @@ half physical damage should apply to gas spores iron bars should affect wall corner wallification potion of polymorph shouldn't be identified if object being dipped into it ends up as the same type of object after polymorphing +don't slap against the floor while riding and eating bad food Platform- and/or Interface-Specific Fixes diff --git a/src/eat.c b/src/eat.c index dde7fab23..4cd2427f8 100644 --- a/src/eat.c +++ b/src/eat.c @@ -1159,7 +1159,11 @@ struct obj *obj; Is_waterlevel(&u.uz)) what = "you lose control of", where = "yourself"; else - what = "you slap against the", where = surface(u.ux,u.uy); + what = "you slap against the", where = +#ifdef STEED + (u.usteed) ? "saddle" : +#endif + surface(u.ux,u.uy); pline_The("world spins and %s %s.", what, where); flags.soundok = 0; nomul(-rnd(10));