mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Fix issue with deployment
This commit is contained in:
parent
8825b26b36
commit
3cd787fb1e
@ -922,13 +922,16 @@ do -- TASK_CARGO_TRANSPORT
|
|||||||
|
|
||||||
local CargoInDeployZone = false
|
local CargoInDeployZone = false
|
||||||
|
|
||||||
-- Loop the DeployZones set for the TASK_CARGO_TRANSPORT.
|
if Cargo:IsUnLoaded() then
|
||||||
for DeployZoneID, DeployZone in pairs( DeployZones ) do
|
|
||||||
|
|
||||||
-- If there is a Cargo not in one of DeployZones, then not all Cargo is deployed.
|
-- Loop the DeployZones set for the TASK_CARGO_TRANSPORT.
|
||||||
self:T( { Cargo.CargoObject } )
|
for DeployZoneID, DeployZone in pairs( DeployZones ) do
|
||||||
if Cargo:IsInZone( DeployZone ) then
|
|
||||||
CargoInDeployZone = true
|
-- 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
|
||||||
|
CargoInDeployZone = true
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user