mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-23 05:51:58 +00:00
Waypoints: If a normal & shortcut paths overlap, use the normal path
This commit is contained in:
parent
d367bacc39
commit
a7f27948f3
1 changed files with 7 additions and 0 deletions
|
|
@ -327,6 +327,13 @@ static void K_CompareOverlappingWaypoint
|
|||
boolean pathfindsuccess = false;
|
||||
path_t pathtofinish = {0};
|
||||
|
||||
if (K_GetWaypointIsShortcut(*bestwaypoint) == false
|
||||
&& K_GetWaypointIsShortcut(checkwaypoint) == true)
|
||||
{
|
||||
// If it's a shortcut, don't use it.
|
||||
return;
|
||||
}
|
||||
|
||||
pathfindsuccess =
|
||||
K_PathfindToWaypoint(checkwaypoint, finishline, &pathtofinish, useshortcuts, huntbackwards);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue