From 1369b17e3b7fee2be36ab21c7d3e91d00030819f Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Fri, 24 Apr 2015 16:24:50 +0300 Subject: [PATCH] Stop travel or run when you get hungry --- doc/fixes35.0 | 1 + src/eat.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/doc/fixes35.0 b/doc/fixes35.0 index 8f4a04890..072dbc6f3 100644 --- a/doc/fixes35.0 +++ b/doc/fixes35.0 @@ -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 diff --git a/src/eat.c b/src/eat.c index 5e12876f5..df1df169e 100644 --- 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;