mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-29 20:50:38 +00:00
Don't play start countdown several times in splitscreen
This commit is contained in:
parent
f942671607
commit
a81eff0884
1 changed files with 7 additions and 4 deletions
11
src/k_kart.c
11
src/k_kart.c
|
@ -3701,10 +3701,13 @@ void K_MoveKartPlayer(player_t *player, boolean onground)
|
|||
}
|
||||
|
||||
// Play the starting countdown sounds
|
||||
if ((leveltime == starttime-(3*TICRATE)) || (leveltime == starttime-(2*TICRATE)) || (leveltime == starttime-TICRATE))
|
||||
S_StartSound(NULL, sfx_s3ka7);
|
||||
if (leveltime == starttime)
|
||||
S_StartSound(NULL, sfx_s3kad);
|
||||
if (player == &players[displayplayer]) // Don't play louder in splitscreen
|
||||
{
|
||||
if ((leveltime == starttime-(3*TICRATE)) || (leveltime == starttime-(2*TICRATE)) || (leveltime == starttime-TICRATE))
|
||||
S_StartSound(NULL, sfx_s3ka7);
|
||||
if (leveltime == starttime)
|
||||
S_StartSound(NULL, sfx_s3kad);
|
||||
}
|
||||
|
||||
// Start charging once you're given the opportunity.
|
||||
if (leveltime >= starttime-(2*TICRATE) && leveltime <= starttime && cmd->buttons & BT_ACCELERATE)
|
||||
|
|
Loading…
Reference in a new issue