From 1919471ae450d82566fb203b81f44f165a54137f Mon Sep 17 00:00:00 2001 From: James R Date: Fri, 23 Feb 2024 22:44:35 -0800 Subject: [PATCH] Update waypoints on same tic as crossing finish line Fix 1 tic delay between crossing finish line and next waypoint updating. May influence respawn behavior. --- src/p_spec.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/p_spec.c b/src/p_spec.c index 2ad07f581..89733f6fa 100644 --- a/src/p_spec.c +++ b/src/p_spec.c @@ -1954,7 +1954,9 @@ static void K_HandleLapIncrement(player_t *player) nump++; } + player->cheatchecknum = 0; player->laps++; + K_UpdateAllPlayerPositions(); if (G_TimeAttackStart() && !linecrossed) { @@ -1987,8 +1989,6 @@ static void K_HandleLapIncrement(player_t *player) if (netgame && player->laps > numlaps) CON_LogMessage(va(M_GetText("%s has finished the race.\n"), player_names[player-players])); - player->cheatchecknum = 0; - if (gametyperules & GTR_SPECIALSTART) { if (player->laps > numlaps) @@ -2182,6 +2182,7 @@ static void K_HandleLapDecrement(player_t *player) { player->cheatchecknum = numcheatchecks; player->laps--; + K_UpdateAllPlayerPositions(); curlap = UINT32_MAX; } }