From: PatR Date: Mon, 4 Jan 2016 00:22:22 +0000 (-0800) Subject: fix reformatting typo in monmove.c X-Git-Tag: NetHack-3.7.0_WIP~776^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=44a9f1db17d7ac96c92f9fe454b8e3699b496a46;p=nethack fix reformatting typo in monmove.c Fix the vault guard error in dochug() discovered by Alex K. The behavior of a vault guard ignoring Conflict when confronting the hero in the vault and escorting him through the temporary corridor isn't affected. 3.4.3 already behaved that way. (I didn't track the cause of that down so don't know whether it's intentional.) --- diff --git a/src/monmove.c b/src/monmove.c index 33917864f..8fc93b745 100644 --- a/src/monmove.c +++ b/src/monmove.c @@ -1,4 +1,4 @@ -/* NetHack 3.6 monmove.c $NHDT-Date: 1451664819 2016/01/01 16:13:39 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.79 $ */ +/* NetHack 3.6 monmove.c $NHDT-Date: 1451866935 2016/01/04 00:22:15 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.80 $ */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /* NetHack may be freely redistributed. See license for details. */ @@ -571,7 +571,7 @@ toofar: case 0: /* no movement, but it can still attack you */ case 3: /* absolutely no movement */ /* vault guard might have vanished */ - if (mtmp->isgd && (mtmp->mhp < 1 || !mtmp->mx == 0)) + if (mtmp->isgd && (mtmp->mhp < 1 || mtmp->mx == 0)) return 1; /* behave as if it died */ /* During hallucination, monster appearance should * still change - even if it doesn't move.