mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 04:21:47 +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->angle += ANG30;
|
||||||
exp->extravalue1++;
|
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_StopSoundByID(exp->target, sfx_exp);
|
||||||
S_StartSound(exp->target, sfx_exp);
|
S_StartSound(exp->target, sfx_exp);
|
||||||
|
}
|
||||||
P_RemoveMobj(exp);
|
P_RemoveMobj(exp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue