From 44a9f1db17d7ac96c92f9fe454b8e3699b496a46 Mon Sep 17 00:00:00 2001 From: PatR Date: Sun, 3 Jan 2016 16:22:22 -0800 Subject: [PATCH] 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.) --- src/monmove.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.