mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-03-12 06:06:27 +00:00
Don't update respawn point when mid-air
This commit is contained in:
parent
150c985ce5
commit
d91e8205dc
1 changed files with 5 additions and 0 deletions
|
|
@ -5880,6 +5880,11 @@ static waypoint_t *K_GetPlayerNextWaypoint(player_t *player, boolean closest)
|
|||
}
|
||||
}
|
||||
|
||||
if (P_IsObjectOnGround(player->mo))
|
||||
{
|
||||
updaterespawn = false;
|
||||
}
|
||||
|
||||
// Respawn point should only be updated when we're going to a nextwaypoint
|
||||
if ((updaterespawn) &&
|
||||
(bestwaypoint != NULL) &&
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue