Don't update respawn point when mid-air

This commit is contained in:
Sally Cochenour 2020-03-03 14:22:52 -05:00
parent 150c985ce5
commit d91e8205dc

View file

@ -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) &&