Skip to content

Commit c20b05b

Browse files
author
Peter Vaiko
committed
fix: CCW combine turns
#731
1 parent fd65d50 commit c20b05b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/ai/turns/AITurn.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ function CombineHeadlandTurn:turn(dt)
490490
maxSpeed = self:getReverseSpeed()
491491
moveForwards = false
492492
gx, gz = self:getGoalPointForTurn(moveForwards, nil)
493-
if dx < 0.2 then
493+
if math.abs(dx) < 0.2 then
494494
self.state = self.states.REVERSE_ARC
495495
self:debug('Combine headland turn start reversing arc')
496496
end

0 commit comments

Comments
 (0)