mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
* Fixed AI_A2A_DISPATCHER going crazy
* Fixed SET to avoid when a new element is added, that the index is also incremented.
This commit is contained in:
parent
d2a7cc77cc
commit
76ea635b63
@ -3007,7 +3007,7 @@ do -- AI_A2A_DISPATCHER
|
||||
|
||||
do
|
||||
local DefendersMissing, Friendlies = self:EvaluateGCI( DetectedItem )
|
||||
if DefendersMissing then
|
||||
if DefendersMissing and DefendersMissing > 0 then
|
||||
self:F( { DefendersMissing = DefendersMissing } )
|
||||
self:GCI( DetectedItem, DefendersMissing, Friendlies )
|
||||
end
|
||||
|
||||
@ -153,8 +153,10 @@ end
|
||||
function SET_BASE:Add( ObjectName, Object )
|
||||
self:F( ObjectName )
|
||||
|
||||
self.Set[ObjectName] = Object
|
||||
table.insert( self.Index, ObjectName )
|
||||
if not self.Set[ObjectName] then
|
||||
self.Set[ObjectName] = Object
|
||||
table.insert( self.Index, ObjectName )
|
||||
end
|
||||
end
|
||||
|
||||
--- Adds a @{Base#BASE} object in the @{Set#SET_BASE}, using the Object Name as the index.
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
env.info( '*** MOOSE DYNAMIC INCLUDE START *** ' )
|
||||
env.info( 'Moose Generation Timestamp: 20171130_1029' )
|
||||
env.info( 'Moose Generation Timestamp: 20171130_1444' )
|
||||
|
||||
local base = _G
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
env.info('*** MOOSE DYNAMIC INCLUDE START *** ')
|
||||
env.info('Moose Generation Timestamp: 20171130_1029')
|
||||
env.info('Moose Generation Timestamp: 20171130_1444')
|
||||
local base=_G
|
||||
MOOSE={}
|
||||
MOOSE.Include=function(LuaPath,IncludeFile)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user