Prevent melting ice destroying necessary traps

A magic portal ended up on a melting ice.
This commit is contained in:
Pasi Kallinen
2025-01-04 16:05:03 +02:00
parent 9313fb7747
commit 2ebe8915f6

View File

@@ -7064,7 +7064,8 @@ trap_ice_effects(coordxy x, coordxy y, boolean ice_is_melting)
int otyp = (ttmp->ttyp == LANDMINE) ? LAND_MINE : BEARTRAP;
cnv_trap_obj(otyp, 1, ttmp, TRUE);
} else {
deltrap(ttmp);
if (!undestroyable_trap(ttmp->ttyp))
deltrap(ttmp);
}
}
}