Untrap monster in trap on melting ice

Monster trapped in a trap on melting ice, the monster stayed
trapped even as the trap was removed when the ice melted.
This commit is contained in:
Pasi Kallinen
2022-07-06 20:16:12 +03:00
parent ab32ec4ad6
commit 640b6d6ce5

View File

@@ -6245,6 +6245,10 @@ trap_ice_effects(coordxy x, coordxy y, boolean ice_is_melting)
struct trap *ttmp = t_at(x, y);
if (ttmp && ice_is_melting) {
struct monst *mtmp;
if (((mtmp = m_at(x, y)) != 0) && mtmp->mtrapped)
mtmp->mtrapped = 0;
if (ttmp->ttyp == LANDMINE || ttmp->ttyp == BEAR_TRAP) {
/* landmine or bear trap set on top of the ice falls
into the water */