From a2438a14c2eba216c9f31d2f69f55b22725aa359 Mon Sep 17 00:00:00 2001 From: AJ Martinez Date: Thu, 2 Nov 2023 07:06:28 -0700 Subject: [PATCH] Fix standard race times being modified on line cross --- src/p_spec.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/p_spec.c b/src/p_spec.c index 02f576f6e..e8d8f8c57 100644 --- a/src/p_spec.c +++ b/src/p_spec.c @@ -1965,14 +1965,13 @@ static void K_HandleLapIncrement(player_t *player) player->karthud[khud_lapanimation] = 80; } - if (!linecrossed) + if (G_TimeAttackStart() && !linecrossed) { linecrossed = leveltime; if (starttime > leveltime) // Overlong starts shouldn't reset time on cross starttime = leveltime; demo_extradata[player-players] |= DXD_START; - if (G_TimeAttackStart()) - Music_Stop("position"); + Music_Stop("position"); } if (rainbowstartavailable == true && player->mo->hitlag == 0)