mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
OK. fixed
This commit is contained in:
@@ -914,11 +914,13 @@ do -- TASK_CARGO_TRANSPORT
|
||||
|
||||
local DeployZones = self:GetDeployZones()
|
||||
|
||||
local CargoDeployed = true
|
||||
local CargoDeployed = false
|
||||
|
||||
-- Loop the CargoSet (so evaluate each Cargo in the SET_CARGO ).
|
||||
for CargoID, CargoData in pairs( Set ) do
|
||||
local Cargo = CargoData -- Core.Cargo#CARGO
|
||||
|
||||
local CargoInDeployZone = false
|
||||
|
||||
-- Loop the DeployZones set for the TASK_CARGO_TRANSPORT.
|
||||
for DeployZoneID, DeployZone in pairs( DeployZones ) do
|
||||
@@ -926,10 +928,12 @@ do -- TASK_CARGO_TRANSPORT
|
||||
-- If there is a Cargo not in one of DeployZones, then not all Cargo is deployed.
|
||||
self:T( { Cargo.CargoObject } )
|
||||
if Cargo:IsInZone( DeployZone ) then
|
||||
else
|
||||
CargoDeployed = false
|
||||
CargoInDeployZone = true
|
||||
end
|
||||
end
|
||||
|
||||
CargoDeployed = CargoDeployed or CargoInDeployZone
|
||||
|
||||
end
|
||||
|
||||
return CargoDeployed
|
||||
|
||||
Reference in New Issue
Block a user