From bb962c3d5a3e84f18de591aed79f25073c1eb611 Mon Sep 17 00:00:00 2001 From: NepDisk Date: Sun, 12 Apr 2026 20:51:29 -0400 Subject: [PATCH] Validate next waypoint in quick exit path --- src/k_kart.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/k_kart.c b/src/k_kart.c index 93c229f4a..fd0c24d5a 100644 --- a/src/k_kart.c +++ b/src/k_kart.c @@ -8855,11 +8855,7 @@ void K_SetRespawnAtNextWaypoint(player_t *player) } // If the player's current and next waypoint is safe, carry on as usual - if (player->currentwaypoint && - player->nextwaypoint && - player->nextwaypoint->mobj && - K_SafeRespawnPosition(player->nextwaypoint->mobj) - ) + if (player->currentwaypoint && (K_SafeRespawnWaypoint(nextwp) || K_GetWaypointIsFinishline(nextwp))) { previouswp = player->currentwaypoint; nextwp = player->nextwaypoint;