mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-03-03 18:01:25 +00:00
Sliptide SFX perf optimization
This commit is contained in:
parent
6ad7c7692c
commit
730f788a07
1 changed files with 2 additions and 2 deletions
|
|
@ -9892,7 +9892,7 @@ static void K_KartDrift(player_t *player, boolean onground)
|
|||
{
|
||||
if (!keepsliptide && K_IsLosingSliptideZip(player) && player->sliptideZip > 0)
|
||||
{
|
||||
if (!S_SoundPlaying(player->mo, sfx_waved2) && player->sliptideZip > HIDEWAVEDASHCHARGE)
|
||||
if (player->sliptideZip > HIDEWAVEDASHCHARGE && !S_SoundPlaying(player->mo, sfx_waved2))
|
||||
S_StartSoundAtVolume(player->mo, sfx_waved2, 255); // Losing combo time, going to boost
|
||||
S_StopSoundByID(player->mo, sfx_waved1);
|
||||
S_StopSoundByID(player->mo, sfx_waved4);
|
||||
|
|
@ -9954,7 +9954,7 @@ static void K_KartDrift(player_t *player, boolean onground)
|
|||
player->sliptideZipDelay = 0;
|
||||
S_StopSoundByID(player->mo, sfx_waved2);
|
||||
S_StopSoundByID(player->mo, sfx_waved4);
|
||||
if (!S_SoundPlaying(player->mo, sfx_waved1) && player->sliptideZip > HIDEWAVEDASHCHARGE)
|
||||
if (player->sliptideZip > HIDEWAVEDASHCHARGE && !S_SoundPlaying(player->mo, sfx_waved1))
|
||||
S_StartSoundAtVolume(player->mo, sfx_waved1, 255); // Charging
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue