mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-22 09:11:21 +00:00
Only play emerald hunt sounds on new tics
This commit is contained in:
parent
40c2f66a5a
commit
e3fd3dfa65
1 changed files with 2 additions and 2 deletions
|
@ -2540,7 +2540,7 @@ static void ST_doHuntIconsAndSound(void)
|
||||||
interval = newinterval;
|
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);
|
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);
|
S_StartSound(NULL, sfx_emfind);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue