From b378ad28852a58eca235959018a58d1de780bdab Mon Sep 17 00:00:00 2001 From: FlightControl Date: Sat, 20 Oct 2018 04:26:45 +0200 Subject: [PATCH] Fixing path calculation. Direct route when the length between the two coordinates is less than 2 km. --- Moose Development/Moose/Wrapper/Controllable.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Moose Development/Moose/Wrapper/Controllable.lua b/Moose Development/Moose/Wrapper/Controllable.lua index bac4e209e..1fb50baa5 100644 --- a/Moose Development/Moose/Wrapper/Controllable.lua +++ b/Moose Development/Moose/Wrapper/Controllable.lua @@ -2136,7 +2136,7 @@ do -- Route methods local canroad=false -- Check if a valid path on road could be found. - if PathOnRoad and LengthOffRoad > 1000 then -- if the length of the movement is less than 1 km, drive directly. + if PathOnRoad and LengthDirect > 2000 then -- if the length of the movement is less than 1 km, drive directly. -- Check whether the road is very long compared to direct path. if LongRoad and Shortcut then