From: cohrs Date: Sun, 24 Feb 2002 06:56:02 +0000 (+0000) Subject: vault guard message on the wrong level X-Git-Tag: MOVE2GIT~3131 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fcf8af733b8c09d1bbc64b7667a4caa1cdd91741;p=nethack vault guard message on the wrong level if vault guard leaves his original level and is killed, clear_fcorr was still attempted on the wrong level. --- diff --git a/doc/fixes34.0 b/doc/fixes34.0 index 0be84bb90..7ee3099b6 100644 --- a/doc/fixes34.0 +++ b/doc/fixes34.0 @@ -441,6 +441,7 @@ prevent corpses of undead creatures just killed by undead turning from being instantly revived by the same undead turning attack allow fake player monsters to handle artifacts that don't match alignment/role chaotic monsters can use Stormbringer; lawful monsters can use Excalibur +No "corridor disappears" message if Vault guard dies off-level Platform- and/or Interface-Specific Fixes diff --git a/src/vault.c b/src/vault.c index a9dcd76b7..51fca6727 100644 --- a/src/vault.c +++ b/src/vault.c @@ -26,6 +26,8 @@ register boolean forceshow; register int fcx, fcy, fcbeg; register struct monst *mtmp; + if (!on_level(&(EGD(grd)->gdlevel), &u.uz)) return TRUE; + while((fcbeg = EGD(grd)->fcbeg) < EGD(grd)->fcend) { fcx = EGD(grd)->fakecorr[fcbeg].fx; fcy = EGD(grd)->fakecorr[fcbeg].fy;