From 46291135a03369a68aa481485fe41ef5e4de321f Mon Sep 17 00:00:00 2001 From: James R Date: Tue, 5 Mar 2024 05:35:20 -0800 Subject: [PATCH] Disable lap cheat prevention when starting lap 1 (first lap from POSITION room) --- src/p_spec.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/p_spec.c b/src/p_spec.c index c4ca508ed..c67f4f9e2 100644 --- a/src/p_spec.c +++ b/src/p_spec.c @@ -2015,6 +2015,13 @@ static void K_HandleLapIncrement(player_t *player) SetRandomFakePlayerSkin(player, true); } + // Always trust waypoints entering the first lap. + // This accounts for special POSITION room setups. + // debuglapcheat can be used to expose errors that would be hidden by this exception. + extern consvar_t cv_debuglapcheat; + if (!cv_debuglapcheat.value && player->laps == 1) + player->pflags |= PF_TRUSTWAYPOINTS; + K_UpdateAllPlayerPositions(); // P_DoPlayerExit calls this }