Only play EXP sound for yourself

This commit is contained in:
VelocitOni 2025-10-12 16:59:40 -04:00
parent 5284dba540
commit 9080d932f5

View file

@ -84,7 +84,7 @@ void Obj_ExpThink (mobj_t *exp)
exp->angle += ANG30; exp->angle += ANG30;
exp->extravalue1++; exp->extravalue1++;
if (exp->extravalue1 >= 16) if (exp->extravalue1 >= 16 && P_IsDisplayPlayer(player))
{ {
S_StopSoundByID(exp->target, sfx_exp); S_StopSoundByID(exp->target, sfx_exp);
S_StartSound(exp->target, sfx_exp); S_StartSound(exp->target, sfx_exp);