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.
This commit is contained in:
cohrs
2002-02-24 06:56:02 +00:00
parent 34f682205c
commit fcf8af733b
2 changed files with 3 additions and 0 deletions

View 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;