Move local display player check

Oops, make sure EXP obj is actually removed again.
This commit is contained in:
VelocitOni 2025-10-12 18:16:30 -04:00
parent 9080d932f5
commit e15ab7ab0b

View file

@ -84,10 +84,13 @@ void Obj_ExpThink (mobj_t *exp)
exp->angle += ANG30;
exp->extravalue1++;
if (exp->extravalue1 >= 16 && P_IsDisplayPlayer(player))
if (exp->extravalue1 >= 16)
{
if(P_IsDisplayPlayer(player)) // As you know Kris, I am FUCKING your EXP.
{
S_StopSoundByID(exp->target, sfx_exp);
S_StartSound(exp->target, sfx_exp);
}
P_RemoveMobj(exp);
}