Prevent battle monitors getting stuck in pits

This commit is contained in:
Nep2Disk 2025-07-24 12:43:39 +00:00
parent 294e60bf8d
commit b8223197cc

View file

@ -2309,6 +2309,14 @@ boolean P_ZMovement(mobj_t *mo)
return false;
}
break;
case MT_MONITOR:
// Prevent battle monitors getting stuck in pits
if (P_CheckDeathPitCollide(mo))
{
P_RemoveMobj(mo);
return false;
}
break;
default:
// SRB2kart stuff that should die in pits
// Shouldn't stop moving along the Z if there's no speed though!