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

Commit

Permalink
diff changes/fixes mode 9/10 and BunkerSiloManager
Browse files Browse the repository at this point in the history
- reworked shield height control
- fixes reverse unloading mode 6 in bunker silo (#6748)
- code improvements BunkerSiloManager
- improves unloading mode 9 at trailers
- fixes mode 9 heap callstacks
  • Loading branch information
schwiti6190 committed Feb 17, 2021
1 parent 54c58e7 commit da0ae42
Show file tree
Hide file tree
Showing 8 changed files with 1,014 additions and 565 deletions.
5 changes: 3 additions & 2 deletions AIDriver.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1418,9 +1418,10 @@ end

function AIDriver:setOffsetInBGASilo()
if self.bunkerSiloManager == nil then
local silo = BunkerSiloManagerUtil.getTargetBunkerSiloByPointOnCourse(self.course,self.ppc:getCurrentWaypointIx()+3)
local ix = self.ppc:getCurrentWaypointIx()+3
local silo = BunkerSiloManagerUtil.getTargetBunkerSiloAtWaypoint(self.vehicle,self.course,ix)
if silo then
self.bunkerSiloManager = BunkerSiloManager(self.vehicle, silo,3)
self.bunkerSiloManager = BunkerSiloManager(self.vehicle, silo,3,nil,BunkerSiloManager.MODE.UNLOADING)
end
end
if self.bunkerSiloManager ~= nil then
Expand Down
Loading

0 comments on commit da0ae42

Please sign in to comment.