Skip to content

Commit

Permalink
End of course offset fixed (again) #323
Browse files Browse the repository at this point in the history
Copy-paste error fixed
  • Loading branch information
pvaiko committed Jan 4, 2022
1 parent 5ee2887 commit 1ea123d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/ai/AIDriveStrategyFieldWorkCourse.lua
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ function AIDriveStrategyFieldWorkCourse:onWaypointChange(ix, course)
if ix > self.course:getNumberOfWaypoints() - 3 and not self.course:isTemporary() then
if self.frontMarkerDistance then
self:debug('adding offset (%.1f front marker) to make sure we do not miss anything when the course ends', self.frontMarkerDistance)
self.aiDriverOffsetZ = -self.frontMarkerDistance
self.aiOffsetZ = -self.frontMarkerDistance
end
end
end
Expand Down

0 comments on commit 1ea123d

Please sign in to comment.