From 6a596c2da8338ca3e07d4cf8e7402254b71dc4e2 Mon Sep 17 00:00:00 2001 From: pops64 Date: Fri, 27 Oct 2017 17:43:27 -0500 Subject: [PATCH] v02.00016 Fixes #2386 --- course_management.lua | 6 ++++-- modDesc.xml | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/course_management.lua b/course_management.lua index fa61e1282..bbb2a4ebc 100644 --- a/course_management.lua +++ b/course_management.lua @@ -240,6 +240,9 @@ 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; @@ -247,8 +250,7 @@ function courseplay:loadCourse(vehicle, id, useRealId, addCourseAtEnd) -- fn is 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; diff --git a/modDesc.xml b/modDesc.xml index 8b032edb5..e4443e7b7 100644 --- a/modDesc.xml +++ b/modDesc.xml @@ -1,6 +1,6 @@ - 5.02.00015 + 5.02.00016 <br>CoursePlay 5</br>