From 0f36c6a96dee1a5b3053347dd888fc5e0a67a1cc Mon Sep 17 00:00:00 2001 From: SeventhSentinel Date: Tue, 26 Jun 2018 12:11:43 -0400 Subject: [PATCH] Final lap sound --- src/p_spec.c | 9 +++++++-- src/sounds.c | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/p_spec.c b/src/p_spec.c index dddde55c..7cfc0a63 100644 --- a/src/p_spec.c +++ b/src/p_spec.c @@ -4181,8 +4181,13 @@ DoneSection2: //except the time! player->starposttime = player->realtime; - if (P_IsLocalPlayer(player) && (player->laps <= (UINT8)(cv_numlaps.value - 1))) - S_StartSound(NULL, sfx_s221); + if (P_IsLocalPlayer(player)) + { + if (player->laps == (UINT8)(cv_numlaps.value - 1)) + S_StartSound(NULL, sfx_s3k68); + else if (player->laps < (UINT8)(cv_numlaps.value - 1)) + S_StartSound(NULL, sfx_s221); + } // //player->starpostangle = player->starposttime = player->starpostnum = 0; diff --git a/src/sounds.c b/src/sounds.c index 94753eea..6223458d 100644 --- a/src/sounds.c +++ b/src/sounds.c @@ -451,7 +451,7 @@ sfxinfo_t S_sfx[NUMSFX] = {"s3k65", false, 255, 0, -1, NULL, 0, -1, -1, LUMPERROR}, // Blue Spheres {"s3k66", false, 64, 0, -1, NULL, 0, -1, -1, LUMPERROR}, {"s3k67", false, 64, 0, -1, NULL, 0, -1, -1, LUMPERROR}, - {"s3k68", false, 64, 0, -1, NULL, 0, -1, -1, LUMPERROR}, + {"s3k68", false, 64, 0, -1, NULL, 0, -1, -1, LUMPERROR}, // Kart final lap {"s3k69", false, 64, 0, -1, NULL, 0, -1, -1, LUMPERROR}, {"s3k6a", false, 64, 0, -1, NULL, 0, -1, -1, LUMPERROR}, {"s3k6b", false, 64, 0, -1, NULL, 0, -1, -1, LUMPERROR},