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

Commit

Permalink
v02.00016 Fixes #2386
Browse files Browse the repository at this point in the history
  • Loading branch information
pops64 committed Oct 27, 2017
1 parent 63cffff commit 6a596c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions course_management.lua
Original file line number Diff line number Diff line change
Expand Up @@ -240,15 +240,17 @@ function courseplay:loadCourse(vehicle, id, useRealId, addCourseAtEnd) -- fn is
-- for turn maneuver
if not vehicle.cp.courseWorkWidth then
vehicle.cp.courseWorkWidth = course.workWidth;
--Place here to prevent it being reset back to one multi Tool on course addition when course isn't auto generated
course.multiTools = course.multiTools or 1
courseplay:changeMultiTools(vehicle, nil, course.multiTools)
end;
if not vehicle.cp.courseNumHeadlandLanes then
vehicle.cp.courseNumHeadlandLanes = course.numHeadlandLanes;
end;
if vehicle.cp.courseHeadlandDirectionCW == nil then
vehicle.cp.courseHeadlandDirectionCW = course.headlandDirectionCW;
end;
course.multiTools = course.multiTools or 1
courseplay:changeMultiTools(vehicle, nil, course.multiTools)


courseplay:debug(string.format('%s: adding course done -> numWaypoints=%d, numCourses=%s, currentCourseName=%q', nameNum(vehicle), vehicle.cp.numWaypoints, vehicle.cp.numCourses, vehicle.cp.currentCourseName), 8);
end;
Expand Down
2 changes: 1 addition & 1 deletion modDesc.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<modDesc descVersion="37">
<version>5.02.00015</version>
<version>5.02.00016</version>
<author><![CDATA[Courseplay.devTeam]]></author>
<title>
<br>CoursePlay 5</br>
Expand Down

0 comments on commit 6a596c2

Please sign in to comment.