This commit is contained in:
Frank
2020-08-14 18:09:13 +02:00
parent 200c1dac85
commit 32c9a59ff0
7 changed files with 143 additions and 37 deletions

View File

@@ -550,7 +550,7 @@ end
-- @return #number Distance between the two nodes.
function ASTAR.DistRoad(nodeA, nodeB)
local path, dist, gotpath=nodeA.coordinate:GetPathOnRoad(nodeB.coordinate,IncludeEndpoints,Railroad,MarkPath,SmokePath)
local path, dist, gotpath=nodeA.coordinate:GetPathOnRoad(nodeB.coordinate, IncludeEndpoints, Railroad, MarkPath, SmokePath)
if gotpath then
return dist