Fix the flung Brak not being removed on deathpits.

This commit is contained in:
toaster 2019-11-30 10:29:51 +00:00
parent 0d433b9e51
commit 0d4158bbd0
1 changed files with 5 additions and 5 deletions

View File

@ -8200,13 +8200,13 @@ void P_MobjThinker(mobj_t *mobj)
var2 = 0;
A_BossScream(mobj);
}
if (P_CheckDeathPitCollide(mobj))
{
P_RemoveMobj(mobj);
return;
}
if (mobj->momz && mobj->z+mobj->momz <= mobj->floorz)
{
if (P_CheckDeathPitCollide(mobj))
{
P_RemoveMobj(mobj);
return;
}
S_StartSound(mobj, sfx_befall);
if (mobj->state != states+S_CYBRAKDEMON_DIE8)
P_SetMobjState(mobj, S_CYBRAKDEMON_DIE8);