Skip to content

Commit fd65d50

Browse files
authored
Merge pull request #754 from Courseplay/753-connecting-path-transition
fix: connecting path transition
2 parents 6b1baf8 + a7f1cc7 commit fd65d50

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

scripts/ai/strategies/AIDriveStrategyFieldWorkCourse.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,9 @@ function AIDriveStrategyFieldWorkCourse:startConnectingPath(ix)
613613
self:debug('Connecting path has %d waypoints, start pathfinding to target waypoint %d, zOffset %.1f',
614614
#connectingPath, targetWaypointIx, zOffset)
615615
self.state = self.states.WAITING_FOR_PATHFINDER
616+
-- to have a course set while waiting for the pathfinder and make sure that the course known to the PPC
617+
-- is the same as the one we are using
618+
self:startCourse(self.rawConnectingPath, 1)
616619
self.pathfinderController:findPathToNode(context, targetNode, 0, zOffset, 1)
617620
end
618621
end

0 commit comments

Comments
 (0)