Improved TaskOnRoad logic

- direct route if path length on route is less than 5%
This commit is contained in:
funkyfranky
2018-07-12 23:23:00 +02:00
parent 258e3d2921
commit 72343bce29
2 changed files with 17 additions and 7 deletions

View File

@@ -1211,6 +1211,7 @@ do -- COORDINATE
-- Include all points on road.
for _,_vec2 in ipairs(path) do
Path[#Path+1]=COORDINATE:NewFromVec2(_vec2)
--COORDINATE:NewFromVec2(_vec2):SmokeGreen()
end
else