mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-18 19:41:29 +00:00
Turn off engine sounds in podium
This commit is contained in:
parent
0156eaf81f
commit
8f047d7b42
1 changed files with 7 additions and 7 deletions
14
src/k_kart.c
14
src/k_kart.c
|
|
@ -6983,6 +6983,13 @@ static void K_UpdateEngineSounds(player_t *player)
|
|||
INT32 targetsnd = 0;
|
||||
INT32 i;
|
||||
|
||||
if (leveltime < 8 || player->spectator || gamestate != GS_LEVEL)
|
||||
{
|
||||
// Silence the engines, and reset sound number while we're at it.
|
||||
player->karthud[khud_enginesnd] = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
s = (player->kartspeed - 1) / 3;
|
||||
w = (player->kartweight - 1) / 3;
|
||||
|
||||
|
|
@ -6995,13 +7002,6 @@ static void K_UpdateEngineSounds(player_t *player)
|
|||
|
||||
class = s + (3*w);
|
||||
|
||||
if (leveltime < 8 || player->spectator)
|
||||
{
|
||||
// Silence the engines, and reset sound number while we're at it.
|
||||
player->karthud[khud_enginesnd] = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
#if 0
|
||||
if ((leveltime % 8) != ((player-players) % 8)) // Per-player offset, to make engines sound distinct!
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue