mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Fixing problems with A2A_GCI.
This commit is contained in:
parent
f4a89d62e3
commit
cfc0367c55
@ -1024,16 +1024,18 @@ do -- AI_A2A_DISPATCHER
|
|||||||
--- @param #AI_A2A_DISPATCHER self
|
--- @param #AI_A2A_DISPATCHER self
|
||||||
function AI_A2A_DISPATCHER:onafterStart( From, Event, To )
|
function AI_A2A_DISPATCHER:onafterStart( From, Event, To )
|
||||||
|
|
||||||
self:GetParent( self ).onafterStart( self, From, Event, To )
|
self:GetParent( self, AI_A2A_DISPATCHER ).onafterStart( self, From, Event, To )
|
||||||
|
|
||||||
-- Spawn the resources.
|
-- Spawn the resources.
|
||||||
for SquadronName, DefenderSquadron in pairs( self.DefenderSquadrons ) do
|
for SquadronName, DefenderSquadron in pairs( self.DefenderSquadrons ) do
|
||||||
DefenderSquadron.Resource = {}
|
DefenderSquadron.Resource = {}
|
||||||
|
if DefenderSquadron.ResourceCount then
|
||||||
for Resource = 1, DefenderSquadron.ResourceCount do
|
for Resource = 1, DefenderSquadron.ResourceCount do
|
||||||
self:ParkDefender( DefenderSquadron )
|
self:ParkDefender( DefenderSquadron )
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
--- @param #AI_A2A_DISPATCHER self
|
--- @param #AI_A2A_DISPATCHER self
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user