From 5ee5fe0f561da276687b726c85a866f53774108f Mon Sep 17 00:00:00 2001 From: SeventhSentinel Date: Wed, 27 Jun 2018 20:51:02 -0400 Subject: [PATCH] Don't play start countdown several times in splitscreen --- src/k_kart.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/k_kart.c b/src/k_kart.c index aa18c8636..ea14cefd4 100644 --- a/src/k_kart.c +++ b/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)