Impossible timer after vault guard entered

Fuzzer encountered impossible "timer sanity: melt timer on non-ice",
when vault guard entered the vault, changing the vault wall unconditionally
into room floor; in this case the vault wall was ice with a melting timer
attached.

Delete any melting ice timers on that location when turning it into floor.
This commit is contained in:
Pasi Kallinen
2024-12-28 19:43:10 +02:00
parent 6530951fd5
commit 66d0307e95

View File

@@ -608,6 +608,7 @@ invault(void)
EGD(guard)->fakecorr[0].ftyp = typ;
EGD(guard)->fakecorr[0].flags = levl[x][y].flags;
/* guard's entry point where confrontation with hero takes place */
spot_stop_timers(x, y, MELT_ICE_AWAY);
levl[x][y].typ = DOOR;
levl[x][y].doormask = D_NODOOR;
unblock_point(x, y); /* empty doorway doesn't block light */