]> granicus.if.org Git - nethack/commitdiff
Stop travel or run when you get hungry
authorPasi Kallinen <paxed@alt.org>
Fri, 24 Apr 2015 13:24:50 +0000 (16:24 +0300)
committerPasi Kallinen <paxed@alt.org>
Fri, 24 Apr 2015 13:24:50 +0000 (16:24 +0300)
doc/fixes35.0
src/eat.c

index 8f4a048907b2883af8a1a111791476a5823cee7d..072dbc6f3d3692200bb9ab5d0796208af3f06fa7 100644 (file)
@@ -1127,6 +1127,7 @@ Some levels in Gehennom now use the old corridor-style maze instead of
     the new room-style. Beelzebub's level always does this and the
     "beetle legs" are restored.
 gnomes will occasionally have a candle
+stop travel or run when you get hungry
 
 
 Platform- and/or Interface-Specific New Features
index 5e12876f53745b0d99b6bfd14866d431e4df411b..df1df169e4f81708234fd05d77260d2195efece7 100644 (file)
--- a/src/eat.c
+++ b/src/eat.c
@@ -2712,6 +2712,7 @@ boolean incr;
                        if (incr && occupation &&
                            (occupation != eatfood && occupation != opentin))
                            stop_occupation();
+                       context.travel = context.travel1 = context.mv = context.run = 0;
                        break;
                case WEAK:
                        if (Hallucination)
@@ -2731,6 +2732,7 @@ boolean incr;
                        if (incr && occupation &&
                            (occupation != eatfood && occupation != opentin))
                            stop_occupation();
+                       context.travel = context.travel1 = context.mv = context.run = 0;
                        break;
                }
                u.uhs = newhs;