Revert a bruh moment from 2.2's development where, in order to fix statues and spikes from being visible on the death pit in CEZ, I made any object that comes into contact with a death pit and isn't on a whitelist delete itself.

(Now the Chao at the start of Sonic Speedway don't die immediately.)
This commit is contained in:
toaster 2020-09-25 15:15:30 +01:00
parent 953afddd03
commit e36da645d9

View file

@ -2174,15 +2174,6 @@ boolean P_ZMovement(mobj_t *mo)
if (!mo->player && P_CheckDeathPitCollide(mo))
{
switch (mo->type)
{
case MT_GHOST:
case MT_METALSONIC_RACE:
case MT_EXPLODE:
case MT_BOSSEXPLODE:
case MT_SONIC3KBOSSEXPLODE:
break;
default:
if (mo->flags & MF_ENEMY || mo->flags & MF_BOSS || mo->type == MT_MINECART)
{
// Kill enemies, bosses and minecarts that fall into death pits.
@ -2192,13 +2183,6 @@ boolean P_ZMovement(mobj_t *mo)
}
return false;
}
else
{
P_RemoveMobj(mo);
return false;
}
break;
}
}
if (P_MobjFlip(mo)*mo->momz < 0
@ -2797,12 +2781,6 @@ boolean P_SceneryZMovement(mobj_t *mo)
break;
}
if (P_CheckDeathPitCollide(mo))
{
P_RemoveMobj(mo);
return false;
}
// clip movement
if (((mo->z <= mo->floorz && !(mo->eflags & MFE_VERTICALFLIP))
|| (mo->z + mo->height >= mo->ceilingz && mo->eflags & MFE_VERTICALFLIP))