Merge branch 'issue1185' into 'next'

Don't forget to check for dead dontdrawforviewmobjs!!

See merge request STJr/SRB2!2325
This commit is contained in:
sphere 2024-02-17 16:30:07 +00:00
commit 706274623d

View file

@ -10294,6 +10294,8 @@ void P_MobjThinker(mobj_t *mobj)
P_SetTarget(&mobj->hnext, NULL);
if (mobj->hprev && P_MobjWasRemoved(mobj->hprev))
P_SetTarget(&mobj->hprev, NULL);
if (mobj->dontdrawforviewmobj && P_MobjWasRemoved(mobj->dontdrawforviewmobj))
P_SetTarget(&mobj->dontdrawforviewmobj, NULL);
mobj->eflags &= ~(MFE_PUSHED|MFE_SPRUNG);