Only play emerald hunt sounds on new tics

This commit is contained in:
Eidolon 2022-05-04 20:40:45 -05:00
parent 40c2f66a5a
commit e3fd3dfa65

View file

@ -2540,7 +2540,7 @@ static void ST_doHuntIconsAndSound(void)
interval = newinterval;
}
if (!(P_AutoPause() || paused) && interval > 0 && leveltime && leveltime % interval == 0)
if (!(P_AutoPause() || paused) && interval > 0 && leveltime && leveltime % interval == 0 && renderisnewtic)
S_StartSound(NULL, sfx_emfind);
}
@ -2602,7 +2602,7 @@ static void ST_doItemFinderIconsAndSound(void)
}
if (!(P_AutoPause() || paused) && interval > 0 && leveltime && leveltime % interval == 0)
if (!(P_AutoPause() || paused) && interval > 0 && leveltime && leveltime % interval == 0 && renderisnewtic)
S_StartSound(NULL, sfx_emfind);
}