From f050d5b14029a92af95f9c9d47d1df3e511d6ff6 Mon Sep 17 00:00:00 2001 From: PatR Date: Wed, 3 Jun 2020 07:55:06 -0700 Subject: [PATCH] dead thief bit Inside the afternmv routine is too late to tweak nomovemsg. --- src/steal.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/steal.c b/src/steal.c index 36f2a5a90..4d4b2235e 100644 --- a/src/steal.c +++ b/src/steal.c @@ -1,4 +1,4 @@ -/* NetHack 3.6 steal.c $NHDT-Date: 1591017420 2020/06/01 13:17:00 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.82 $ */ +/* NetHack 3.6 steal.c $NHDT-Date: 1591196090 2020/06/03 14:54:50 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.83 $ */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /*-Copyright (c) Robert Patrick Rankin, 2012. */ /* NetHack may be freely redistributed. See license for details. */ @@ -139,8 +139,10 @@ thiefdead() { /* hero is busy taking off an item of armor which takes multiple turns */ g.stealmid = 0; - if (g.afternmv == stealarm) + if (g.afternmv == stealarm) { g.afternmv = unstolenarm; + g.nomovemsg = (char *) 0; + } } /* called via (*g.afternmv)() when hero finishes taking off armor that @@ -157,7 +159,6 @@ unstolenarm(VOID_ARGS) break; g.stealoid = 0; if (obj) { - g.nomovemsg = (char *) 0; You("finish taking off your %s.", equipname(obj)); } return 0;