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

Commit

Permalink
6.01.00150: fixed run counter
Browse files Browse the repository at this point in the history
fixes #3450
  • Loading branch information
ThomasGaertner committed Mar 25, 2019
1 parent 7c75306 commit 585c171
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion GrainTransportAIDriver.lua
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ end
-- TODO: move this into onWaypointPassed() instead
function GrainTransportAIDriver:checkLastWaypoint()
local allowedToDrive = true
if self.ppc:reachedLastWaypoint() then
if self.ppc:getCurrentWaypointIx() == self.course:getNumberOfWaypoints() then
courseplay:openCloseCover(self.vehicle, not courseplay.SHOW_COVERS)

-- Don't make life too complicated. Whenever we restart the course, we just
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.00149</version>
<version>6.01.00150</version>
<author><![CDATA[Courseplay.devTeam]]></author>
<title>
<br>CoursePlay SIX</br>
Expand Down

0 comments on commit 585c171

Please sign in to comment.