Waypoints: If a normal & shortcut paths overlap, use the normal path

This commit is contained in:
Sally Coolatta 2023-05-15 04:00:24 -04:00
parent d367bacc39
commit a7f27948f3

View file

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