From e4606b4d0520ab64918d5a37466066bc6beddb7d Mon Sep 17 00:00:00 2001 From: FlightControl Date: Fri, 19 Oct 2018 17:00:43 +0200 Subject: [PATCH] Fixing path calculation. Direct route when the length between the two coordinates is less than 1 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 e20badf89..bac4e209e 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 then + if PathOnRoad and LengthOffRoad > 1000 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