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

Commit

Permalink
6.01.00149: copen cover on fill point
Browse files Browse the repository at this point in the history
fixes #3477
  • Loading branch information
ThomasGaertner committed Mar 25, 2019
1 parent 2ca13e0 commit 7c75306
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion FillableFieldworkAIDriver.lua
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function FillableFieldworkAIDriver:fillAtWaitPoint()
local allowedToDrive = false
courseplay:setInfoText(vehicle, string.format("COURSEPLAY_LOADING_AMOUNT;%d;%d",courseplay.utils:roundToLowerInterval(vehicle.cp.totalFillLevel, 100),vehicle.cp.totalCapacity));
self:setInfoText('WAIT_POINT')

courseplay:openCloseCover(vehicle, not courseplay.SHOW_COVERS)
--fillLevel changed in last loop-> start timer
if self.prevFillLevelPct == nil or self.prevFillLevelPct ~= vehicle.cp.totalFillLevelPercent then
self.prevFillLevelPct = vehicle.cp.totalFillLevelPercent
Expand All @@ -106,6 +106,7 @@ function FillableFieldworkAIDriver:fillAtWaitPoint()
self:continue()
courseplay:resetCustomTimer(vehicle, "fillLevelChange",true);
self.prevFillLevelPct = nil
courseplay:openCloseCover(vehicle, courseplay.SHOW_COVERS)
end
end
return allowedToDrive
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="40">
<version>6.01.00148</version>
<version>6.01.00149</version>
<author><![CDATA[Courseplay.devTeam]]></author>
<title>
<br>CoursePlay SIX</br>
Expand Down

0 comments on commit 7c75306

Please sign in to comment.