Skip to content

Commit

Permalink
Added check for available drivers in interface function (for CP)
Browse files Browse the repository at this point in the history
This should prevent the CP driven combine to stand still even though there is no active AD driver ready to come and unload.
This is what keeps blocking the combine on manual unload mode.
  • Loading branch information
Stephan-S committed May 26, 2019
1 parent 14b2466 commit 33e89d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FS19_AutoDrive/scripts/AutoDriveCombineMode.lua
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function AutoDrive:callDriverToCombine(combine)
end;

function AutoDrive:combineIsCallingDriver(combine)
return (combine.ad ~= nil) and (combine.ad.tryingToCallDriver or combine.ad.driverOnTheWay);
return (combine.ad ~= nil) and ((combine.ad.tryingToCallDriver and ADTableLength(AutoDrive.waitingUnloadDrivers) > 0) or combine.ad.driverOnTheWay);
end;

function AutoDrive:handleReachedWayPointCombine(vehicle)
Expand Down

1 comment on commit 33e89d5

@Anonymous-any
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes ! open pipe alone now without CP manual intervention.

Please sign in to comment.