mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Merge branch 'develop' into FF/Develop
This commit is contained in:
@@ -903,7 +903,8 @@ function AI_CARGO_DISPATCHER:onafterMonitor()
|
||||
if not self.PickupZoneSet or PickupZone then
|
||||
for CarrierPickup, Coordinate in pairs( self.PickupCargo ) do
|
||||
if CarrierPickup:IsAlive() == true then
|
||||
if CargoCoordinate:Get2DDistance( Coordinate ) <= 100 then
|
||||
if CargoCoordinate:Get2DDistance( Coordinate ) <= 25 then
|
||||
self:F( { "Coordinate not free for ", Cargo = Cargo:GetName(), Carrier:GetName(), PickupCargo = self.PickupCargo[Carrier] ~= nil } )
|
||||
CoordinateFree = false
|
||||
break
|
||||
end
|
||||
@@ -1025,6 +1026,7 @@ function AI_CARGO_DISPATCHER:onafterTransport( From, Event, To, Carrier, Cargo )
|
||||
end
|
||||
end
|
||||
|
||||
self:F( { Carrier = Carrier:GetName(), PickupCargo = self.PickupCargo } )
|
||||
self.PickupCargo[Carrier] = nil
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user