B10005 fire traps under water

<Someone> reported that after pushing a boulder into a pool location which
contained a fire trap on the bottom, that the trap wasn't destroyed.  Added
missing delfloortrap call.
This commit is contained in:
cohrs
2002-10-14 00:10:44 +00:00
parent 211f09b9ee
commit a8f4069c30
2 changed files with 5 additions and 0 deletions

View File

@@ -277,6 +277,7 @@ when summoning nasty monsters, use new monster's type to decide if they can
don't display the "intones:" prefix when !soundok since the message suffix
won't be displayed in this case
document "sound" option in Guidebook
destroy traps that are buried by boulders dropped in water
Platform- and/or Interface-Specific Fixes

View File

@@ -72,13 +72,17 @@ boolean pushing;
fills_up = lava ? chance == 0 : chance != 0;
if (fills_up) {
struct trap *ttmp = t_at(rx, ry);
if (ltyp == DRAWBRIDGE_UP) {
levl[rx][ry].drawbridgemask &= ~DB_UNDER; /* clear lava */
levl[rx][ry].drawbridgemask |= DB_FLOOR;
} else
levl[rx][ry].typ = ROOM;
if (ttmp) (void) delfloortrap(ttmp);
bury_objs(rx, ry);
newsym(rx,ry);
if (pushing) {
You("push %s into the %s.", the(xname(otmp)), what);