mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
@@ -4375,7 +4375,7 @@ do -- AI_A2G_DISPATCHER
|
|||||||
|
|
||||||
Report:Add( string.format( "\n - Squadron Resources: ", #self.DefenseQueue ) )
|
Report:Add( string.format( "\n - Squadron Resources: ", #self.DefenseQueue ) )
|
||||||
for DefenderSquadronName, DefenderSquadron in pairs( self.DefenderSquadrons ) do
|
for DefenderSquadronName, DefenderSquadron in pairs( self.DefenderSquadrons ) do
|
||||||
Report:Add( string.format( " - %s - %d", DefenderSquadronName, DefenderSquadron.ResourceCount and DefenderSquadron.ResourceCount or "n/a" ) )
|
Report:Add( string.format( " - %s - %s", DefenderSquadronName, DefenderSquadron.ResourceCount and tostring(DefenderSquadron.ResourceCount) or "n/a" ) )
|
||||||
end
|
end
|
||||||
|
|
||||||
self:F( Report:Text( "\n" ) )
|
self:F( Report:Text( "\n" ) )
|
||||||
|
|||||||
@@ -1063,6 +1063,7 @@ function EVENT:onEvent( Event )
|
|||||||
if Event.id==EVENTS.LandingAfterEjection then
|
if Event.id==EVENTS.LandingAfterEjection then
|
||||||
-- Place is here the UNIT of which the pilot ejected.
|
-- Place is here the UNIT of which the pilot ejected.
|
||||||
--local name=Event.place:getName() -- This returns a DCS error "Airbase doesn't exit" :(
|
--local name=Event.place:getName() -- This returns a DCS error "Airbase doesn't exit" :(
|
||||||
|
-- However, this is not a big thing, as the aircraft the pilot ejected from is usually long crashed before the ejected pilot touches the ground.
|
||||||
--Event.Place=UNIT:Find(Event.place)
|
--Event.Place=UNIT:Find(Event.place)
|
||||||
else
|
else
|
||||||
Event.Place=AIRBASE:Find(Event.place)
|
Event.Place=AIRBASE:Find(Event.place)
|
||||||
|
|||||||
Reference in New Issue
Block a user