Disable lap cheat prevention while on lap 0 (POSITION room)

This commit is contained in:
James R 2024-03-05 05:34:44 -08:00
parent 1015d6964b
commit 2a79eed0d2

View file

@ -9991,6 +9991,7 @@ static void K_UpdatePlayerWaypoints(player_t *const player)
if (delta > distance_threshold &&
player->respawn.state == RESPAWNST_NONE && // Respawning should be a full reset.
old_currentwaypoint != NULL && // So should touching the first waypoint ever.
player->laps != 0 && // POSITION rooms may have unorthodox waypoints to guide bots.
!(player->pflags & PF_TRUSTWAYPOINTS)) // Special exception.
{
extern consvar_t cv_debuglapcheat;