Don't play start countdown several times in splitscreen

This commit is contained in:
SeventhSentinel 2018-06-27 20:51:02 -04:00
parent f942671607
commit a81eff0884

View file

@ -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)