mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-24 23:46:16 +00:00
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:
parent
f7f98ff6d1
commit
69ed099490
2 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue