From 8443c3caccd54549f2d4601261dccf2e6979cd9f Mon Sep 17 00:00:00 2001 From: Peter Vaiko Date: Sat, 6 Apr 2019 06:55:33 -0500 Subject: [PATCH] 6.01.00164 Do not unload baler/wrapper during turn #3525 --- BaleWrapperAIDriver.lua | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/BaleWrapperAIDriver.lua b/BaleWrapperAIDriver.lua index 5b914fdcc..b5fa38625 100644 --- a/BaleWrapperAIDriver.lua +++ b/BaleWrapperAIDriver.lua @@ -29,14 +29,17 @@ function BaleWrapperAIDriver:init(vehicle) end function BaleWrapperAIDriver:driveFieldwork() - -- stop while wrapping only if we deon't have a baler. If we do we should continue driving and working - -- on the next bale, the baler code will take care about stopping if we need to - if self.baleWrapper.spec_baleWrapper.baleWrapperState ~= BaleWrapper.STATE_NONE and not self.baler then - self:setSpeed(0) - end - -- Yes, Giants has a typo in the state - if self.baleWrapper.spec_baleWrapper.baleWrapperState == BaleWrapper.STATE_WRAPPER_FINSIHED then - self.baleWrapper:doStateChange(BaleWrapper.CHANGE_WRAPPER_START_DROP_BALE) + -- Don't drop the bale in the turn + if not self.turnIsDriving then + -- stop while wrapping only if we deon't have a baler. If we do we should continue driving and working + -- on the next bale, the baler code will take care about stopping if we need to + if self.baleWrapper.spec_baleWrapper.baleWrapperState ~= BaleWrapper.STATE_NONE and not self.baler then + self:setSpeed(0) + end + -- Yes, Giants has a typo in the state + if self.baleWrapper.spec_baleWrapper.baleWrapperState == BaleWrapper.STATE_WRAPPER_FINSIHED then + self.baleWrapper:doStateChange(BaleWrapper.CHANGE_WRAPPER_START_DROP_BALE) + end end BalerAIDriver.driveFieldwork(self) end