Disabled SetSquadronVisible due to a bug fix that is required.

This commit is contained in:
FlightControl
2019-03-07 14:02:49 +01:00
parent c8c95e063d
commit eee1aca14f

View File

@@ -1778,21 +1778,22 @@ do -- AI_A2G_DISPATCHER
-- -- Set the Squadron visible before startup of dispatcher. -- -- Set the Squadron visible before startup of dispatcher.
-- A2GDispatcher:SetSquadronVisible( "Mineralnye" ) -- A2GDispatcher:SetSquadronVisible( "Mineralnye" )
-- --
function AI_A2G_DISPATCHER:SetSquadronVisible( SquadronName ) -- TODO: disabling because of bug in queueing.
-- function AI_A2G_DISPATCHER:SetSquadronVisible( SquadronName )
self.DefenderSquadrons[SquadronName] = self.DefenderSquadrons[SquadronName] or {} --
-- self.DefenderSquadrons[SquadronName] = self.DefenderSquadrons[SquadronName] or {}
local DefenderSquadron = self:GetSquadron( SquadronName ) --
-- local DefenderSquadron = self:GetSquadron( SquadronName )
DefenderSquadron.Uncontrolled = true --
self:SetSquadronTakeoffFromParkingCold( SquadronName ) -- DefenderSquadron.Uncontrolled = true
self:SetSquadronLandingAtEngineShutdown( SquadronName ) -- self:SetSquadronTakeoffFromParkingCold( SquadronName )
-- self:SetSquadronLandingAtEngineShutdown( SquadronName )
for SpawnTemplate, DefenderSpawn in pairs( self.DefenderSpawns ) do --
DefenderSpawn:InitUnControlled() -- for SpawnTemplate, DefenderSpawn in pairs( self.DefenderSpawns ) do
end -- DefenderSpawn:InitUnControlled()
-- end
end --
-- end
--- Check if the Squadron is visible before startup of the dispatcher. --- Check if the Squadron is visible before startup of the dispatcher.
-- @param #AI_A2G_DISPATCHER self -- @param #AI_A2G_DISPATCHER self