From e45c66d109e278e69a1b5c9bfffcb93dd0aa0526 Mon Sep 17 00:00:00 2001 From: Peter Vaiko Date: Thu, 4 Mar 2021 18:59:54 -0600 Subject: [PATCH] Make sure there's always a good turn radius calculated --- vehicles.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vehicles.lua b/vehicles.lua index cd9cbc4fb..0b83b75a1 100644 --- a/vehicles.lua +++ b/vehicles.lua @@ -1596,7 +1596,8 @@ function AIDriverUtil.getTurningRadius(vehicle) courseplay.debugVehicle(courseplay.DBG_IMPLEMENTS, vehicle, ' %s: using the Giants turn radius %.1f', implement.object:getName(), turnRadius) end - else + end + if turnRadius == 0 then turnRadius = courseplay:getToolTurnRadius(implement.object) courseplay.debugVehicle(courseplay.DBG_IMPLEMENTS, vehicle, ' %s: no Giants turn radius, we calculated %.1f', implement.object:getName(), turnRadius)