mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-25 09:22:33 +00:00
Move local display player check
Oops, make sure EXP obj is actually removed again.
This commit is contained in:
parent
9080d932f5
commit
e15ab7ab0b
1 changed files with 4 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue