Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Commit

Permalink
Make sure there's always a good turn radius calculated
Browse files Browse the repository at this point in the history
  • Loading branch information
pvaiko committed Mar 5, 2021
1 parent 47eb191 commit e45c66d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vehicles.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e45c66d

Please sign in to comment.