mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
Fixes
This commit is contained in:
parent
9c0c4a11b1
commit
b1cee9969f
@ -4108,7 +4108,7 @@ do -- AI_A2G_DISPATCHER
|
||||
|
||||
self:F( { "Target ID", DetectedItem.ItemID } )
|
||||
|
||||
self:F( { DefenseLimit = self.DefenseLimitmit, DefenseTotal = DefenseTotal } )
|
||||
self:F( { DefenseLimit = self.DefenseLimit, DefenseTotal = DefenseTotal } )
|
||||
DetectedSet:Flush( self )
|
||||
|
||||
local DetectedID = DetectedItem.ID
|
||||
@ -4149,7 +4149,7 @@ do -- AI_A2G_DISPATCHER
|
||||
end
|
||||
end
|
||||
|
||||
if EngageCoordinate and DefenseTotal < self.DefenseLimit then
|
||||
if EngageCoordinate and ( ( self.DefenseLimit and DefenseTotal < self.DefenseLimit ) or true ) then
|
||||
do
|
||||
local DefendersTotal, DefendersEngaged, DefendersMissing, Friendlies = self:Evaluate_SEAD( DetectedItem ) -- Returns a SET_UNIT with the SEAD targets to be engaged...
|
||||
if DefendersMissing > 0 then
|
||||
|
||||
@ -2848,7 +2848,7 @@ function SPAWN:_Prepare( SpawnTemplatePrefix, SpawnIndex ) --R2.2
|
||||
-- Callsign
|
||||
for UnitID = 1, #SpawnTemplate.units do
|
||||
local Callsign = SpawnTemplate.units[UnitID].callsign
|
||||
if Callsign[1] ~= nil then -- blue callsign
|
||||
if type(Callsign) ~= "number" then -- blue callsign
|
||||
Callsign[2] = ( ( SpawnIndex - 1 ) % 10 ) + 1
|
||||
local CallsignName = SpawnTemplate.units[UnitID].callsign["name"] -- #string
|
||||
local CallsignLen = CallsignName:len()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user