mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Avoid sound iteration, if we can help it
This commit is contained in:
parent
06f583a15d
commit
da2aab1af1
1 changed files with 1 additions and 1 deletions
|
|
@ -9455,7 +9455,7 @@ static void K_KartDrift(player_t *player, boolean onground)
|
|||
{
|
||||
S_StopSoundByID(player->mo, sfx_waved1);
|
||||
S_StopSoundByID(player->mo, sfx_waved2);
|
||||
if (!S_SoundPlaying(player->mo, sfx_waved4) && player->sliptideZip > 0)
|
||||
if (player->sliptideZip > 0 && !S_SoundPlaying(player->mo, sfx_waved4))
|
||||
S_StartSound(player->mo, sfx_waved4);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue