]> granicus.if.org Git - nethack/commitdiff
slap against floor while riding
authornethack.allison <nethack.allison>
Thu, 7 Mar 2002 23:54:15 +0000 (23:54 +0000)
committernethack.allison <nethack.allison>
Thu, 7 Mar 2002 23:54:15 +0000 (23:54 +0000)
> Greetings! <Someone> 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. <Someone> 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! <email deleted>
>

doc/fixes34.0
src/eat.c

index 2b2588a72dacc578a1f152972388c344e1bb3f7e..abbf5f2479ac093a60000d3e5cde442acf8a2ed8 100644 (file)
@@ -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
index dde7fab238247b469fec5e04fcc373041a0f8f62..4cd2427f8385c31be5bfceee2671ad39d399ea9e 100644 (file)
--- 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));