Remove in death pits

This commit is contained in:
TehRealSalt 2018-11-29 07:50:58 -05:00
parent be4fb2bcfb
commit a32b3bf07b

View file

@ -7940,7 +7940,12 @@ void P_MobjThinker(mobj_t *mobj)
{
if (mobj->flags & MF_NOCLIPTHING)
{
if (P_IsObjectOnGround(mobj))
if (P_CheckDeathPitCollide(mobj))
{
P_RemoveMobj(mobj);
return;
}
else if (P_IsObjectOnGround(mobj))
{
mobj->momx = 1;
mobj->momy = 0;