mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-04 04:36:21 +00:00
Let's try out going back to closest check again
This commit is contained in:
parent
d91e8205dc
commit
597e6820b6
1 changed files with 3 additions and 1 deletions
|
|
@ -6006,14 +6006,16 @@ static void K_UpdateDistanceFromFinishLine(player_t *const player)
|
|||
else
|
||||
{
|
||||
waypoint_t *finishline = K_GetFinishLineWaypoint();
|
||||
waypoint_t *nextwaypoint = K_GetPlayerNextWaypoint(player, false);
|
||||
waypoint_t *nextwaypoint = K_GetPlayerNextWaypoint(player, true); //false
|
||||
|
||||
/*
|
||||
if ((nextwaypoint == NULL) && (player->nextwaypoint == NULL))
|
||||
{
|
||||
// Special case: if player nextwaypoint is still NULL, we want to fix that as soon as possible, so use the closest waypoint instead.
|
||||
// This will most likely only happen on map load or player spawn.
|
||||
nextwaypoint = K_GetPlayerNextWaypoint(player, true);
|
||||
}
|
||||
*/
|
||||
|
||||
if (nextwaypoint != NULL)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue