Don't pause mobj thinker for player whose hitlag will be cancelled anyway

This commit is contained in:
James R 2023-03-11 05:20:01 -08:00
parent 622bfa9512
commit ee4011cca6

View file

@ -9843,7 +9843,7 @@ void P_MobjThinker(mobj_t *mobj)
return;
// Don't run any thinker code while in hitlag
if (mobj->hitlag > 0)
if ((mobj->player ? mobj->hitlag - mobj->player->nullHitlag : mobj->hitlag) > 0)
{
mobj->eflags |= MFE_PAUSED;
mobj->hitlag--;