Merge branch 'exp-local-only-sfx' into 'master'

Only play EXP sound for yourself

See merge request kart-krew-dev/ring-racers-internal!2936
This commit is contained in:
Oni VelocitOni 2025-10-12 23:31:30 +00:00
commit a91e62029a

View file

@ -85,9 +85,12 @@ void Obj_ExpThink (mobj_t *exp)
exp->extravalue1++;
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);
}