Validate next waypoint in quick exit path
This commit is contained in:
parent
198f994f53
commit
bb962c3d5a
1 changed files with 1 additions and 5 deletions
|
|
@ -8855,11 +8855,7 @@ void K_SetRespawnAtNextWaypoint(player_t *player)
|
|||
}
|
||||
|
||||
// If the player's current and next waypoint is safe, carry on as usual
|
||||
if (player->currentwaypoint &&
|
||||
player->nextwaypoint &&
|
||||
player->nextwaypoint->mobj &&
|
||||
K_SafeRespawnPosition(player->nextwaypoint->mobj)
|
||||
)
|
||||
if (player->currentwaypoint && (K_SafeRespawnWaypoint(nextwp) || K_GetWaypointIsFinishline(nextwp)))
|
||||
{
|
||||
previouswp = player->currentwaypoint;
|
||||
nextwp = player->nextwaypoint;
|
||||
|
|
|
|||
Loading…
Reference in a new issue