Skip to content

Commit

Permalink
6.01.00193 Fixes Courseplay#3644
Browse files Browse the repository at this point in the history
Looks like something (most likely mode 2) is still using the old
alignment code and this had a conflict with 191.

Removed obsolete code from turn.lua
  • Loading branch information
pvaiko committed Apr 17, 2019
1 parent 2612bc3 commit 2500eb2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
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.00192</version>
<version>6.01.00193</version>
<author><![CDATA[Courseplay.devTeam]]></author>
<title>
<br>CoursePlay SIX</br>
Expand Down
4 changes: 0 additions & 4 deletions turn.lua
Original file line number Diff line number Diff line change
Expand Up @@ -536,10 +536,6 @@ function courseplay:turn(vehicle, dt, turnContext)
elseif vehicle.cp.turnStage == 3 then
local deltaZ, lowerImplements
if courseplay:onAlignmentCourse( vehicle ) then
-- on alignment course to the waypoint, ignore front marker, we want to get the vehicle itself to get to the waypoint
-- Why are we even do this? lowerImplements doesn't occur till later in this elseif statement and we are returning out of the function before we even get there
_, _, deltaZ = worldToLocal(realDirectionNode, turnContext.turnStartWp.x, vehicleY, turnContext.turnStartWp.z)
lowerImplements = deltaZ < 3
courseplay:endAlignmentCourse( vehicle )
courseplay:setWaypointIndex(vehicle, vehicle.cp.waypointIndex );
return
Expand Down

0 comments on commit 2500eb2

Please sign in to comment.