mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Disable lap cheat prevention when starting lap 1 (first lap from POSITION room)
This commit is contained in:
parent
2a79eed0d2
commit
46291135a0
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue