Stop travel or run when you get hungry

This commit is contained in:
Pasi Kallinen
2015-04-24 16:24:50 +03:00
parent a2dcc89838
commit 1369b17e3b
2 changed files with 3 additions and 0 deletions

View File

@@ -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;