mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-22 13:31:15 +00:00
Reduce update frequency to match the sfx length better
This commit is contained in:
parent
cdef7f4e1d
commit
445254dab6
1 changed files with 2 additions and 2 deletions
|
|
@ -3655,10 +3655,10 @@ static void K_UpdateEngineSounds(player_t *player, ticcmd_t *cmd)
|
|||
INT32 class = ((player->kartspeed-1)/3) + (3*((player->kartweight-1)/3)); // engine class (3*weight/3 LOOKS redundant, but it's to reduce the precision and get things into 3 unique categories)
|
||||
const INT32 numsnds = 13;
|
||||
|
||||
if (leveltime < 6) // stats may not be set on level start, so it plays class A sounds
|
||||
if (leveltime < 8) // stats may not be set on level start, so it plays class A sounds
|
||||
return;
|
||||
|
||||
if (leveltime % 6)
|
||||
if (leveltime % 8)
|
||||
return;
|
||||
|
||||
if (targetsnd < 0)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue