Symmetrical safelap behavior

- Do not increment lap during lightsnake
  - Symmetrical with decrement behavior
- Let lap be restored to higher safelap
  - Prevent headaches if lap is erroneously decremented
This commit is contained in:
James R 2024-02-29 18:26:23 -08:00
parent f7f98ff6d1
commit 69ed099490
2 changed files with 3 additions and 1 deletions

View file

@ -10858,7 +10858,7 @@ void K_UpdateAllPlayerPositions(void)
if (player->respawn.state == RESPAWNST_MOVE &&
player->respawn.init == true &&
player->lastsafelap < player->laps)
player->lastsafelap != player->laps)
{
player->laps = player->lastsafelap;
player->cheatchecknum = player->lastsafecheatcheck;

View file

@ -1911,6 +1911,8 @@ static void K_HandleLapIncrement(player_t *player)
{
if (player)
{
if (player->respawn.state == RESPAWNST_MOVE)
return;
if (!G_TimeAttackStart() && leveltime < starttime && !(gametyperules & GTR_ROLLINGSTART))
{
// freeze 'em until fault penalty is over