mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
Downpatching changes from development to master
This commit is contained in:
parent
088436c5ce
commit
bb07e1935e
@ -72,7 +72,6 @@
|
|||||||
-- @module Functional.MissileTrainer
|
-- @module Functional.MissileTrainer
|
||||||
-- @image Missile_Trainer.JPG
|
-- @image Missile_Trainer.JPG
|
||||||
|
|
||||||
|
|
||||||
---
|
---
|
||||||
-- @type MISSILETRAINER
|
-- @type MISSILETRAINER
|
||||||
-- @field Core.Set#SET_CLIENT DBClients
|
-- @field Core.Set#SET_CLIENT DBClients
|
||||||
|
|||||||
@ -87,7 +87,7 @@
|
|||||||
-- @field #number respawndelay Delay before respawn in seconds.
|
-- @field #number respawndelay Delay before respawn in seconds.
|
||||||
-- @field #number runwaydestroyed Time stamp timer.getAbsTime() when the runway was destroyed.
|
-- @field #number runwaydestroyed Time stamp timer.getAbsTime() when the runway was destroyed.
|
||||||
-- @field #number runwayrepairtime Time in seconds until runway will be repaired after it was destroyed. Default is 3600 sec (one hour).
|
-- @field #number runwayrepairtime Time in seconds until runway will be repaired after it was destroyed. Default is 3600 sec (one hour).
|
||||||
-- @field Ops.FlightControl#FLIGHTCONTROL flightcontrol Flight control of this warehouse.
|
-- @field OPS.FlightControl#FLIGHTCONTROL flightcontrol Flight control of this warehouse.
|
||||||
-- @extends Core.Fsm#FSM
|
-- @extends Core.Fsm#FSM
|
||||||
|
|
||||||
--- Have your assets at the right place at the right time - or not!
|
--- Have your assets at the right place at the right time - or not!
|
||||||
|
|||||||
@ -689,7 +689,15 @@ function GROUP:GetUnits()
|
|||||||
local DCSUnits = DCSGroup:getUnits() or {}
|
local DCSUnits = DCSGroup:getUnits() or {}
|
||||||
local Units = {}
|
local Units = {}
|
||||||
for Index, UnitData in pairs( DCSUnits ) do
|
for Index, UnitData in pairs( DCSUnits ) do
|
||||||
Units[#Units+1] = UNIT:Find( UnitData )
|
|
||||||
|
local unit=UNIT:Find( UnitData )
|
||||||
|
if unit then
|
||||||
|
Units[#Units+1] = UNIT:Find( UnitData )
|
||||||
|
else
|
||||||
|
local UnitName=UnitData:getName()
|
||||||
|
unit=_DATABASE:AddUnit(UnitName)
|
||||||
|
Units[#Units+1]=unit
|
||||||
|
end
|
||||||
end
|
end
|
||||||
self:T3( Units )
|
self:T3( Units )
|
||||||
return Units
|
return Units
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user