]> granicus.if.org Git - nethack/commitdiff
vault guard message on the wrong level
authorcohrs <cohrs>
Sun, 24 Feb 2002 06:56:02 +0000 (06:56 +0000)
committercohrs <cohrs>
Sun, 24 Feb 2002 06:56:02 +0000 (06:56 +0000)
if vault guard leaves his original level and is killed, clear_fcorr
was still attempted on the wrong level.

doc/fixes34.0
src/vault.c

index 0be84bb90e92d2b1ab7b2d695d156d1b0bdab494..7ee3099b6a20201e8738cd7ae98c9af0a22c7f6e 100644 (file)
@@ -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
index a9dcd76b794ac701c332df5c22a2132c8fdb44ba..51fca672794b4476c564e9f132092d3666885450 100644 (file)
@@ -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;