mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Fixed bug in Movement
This commit is contained in:
@@ -67,7 +67,9 @@ trace.f( self.ClassName, { event } )
|
|||||||
if timer.getTime0() < timer.getAbsTime() then -- dont need to add units spawned in at the start of the mission if mist is loaded in init line
|
if timer.getTime0() < timer.getAbsTime() then -- dont need to add units spawned in at the start of the mission if mist is loaded in init line
|
||||||
if event.initiator and event.initiator:getName() then
|
if event.initiator and event.initiator:getName() then
|
||||||
trace.l(self.ClassName, "OnBirth", "Birth object : " .. event.initiator:getName() )
|
trace.l(self.ClassName, "OnBirth", "Birth object : " .. event.initiator:getName() )
|
||||||
local EventGroupName = Unit.getGroup(event.initiator):getName()
|
local GroupData = Unit.getGroup(event.initiator)
|
||||||
|
if GroupData and GroupData:isExist() then
|
||||||
|
local EventGroupName = GroupData:getName()
|
||||||
for MovePrefixID, MovePrefix in pairs( self.MovePrefixes ) do
|
for MovePrefixID, MovePrefix in pairs( self.MovePrefixes ) do
|
||||||
if string.find( EventGroupName, MovePrefix, 1, true ) then
|
if string.find( EventGroupName, MovePrefix, 1, true ) then
|
||||||
self.AliveUnits = self.AliveUnits + 1
|
self.AliveUnits = self.AliveUnits + 1
|
||||||
@@ -77,6 +79,7 @@ trace.f( self.ClassName, { event } )
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ trace = {}
|
|||||||
trace.names = {}
|
trace.names = {}
|
||||||
trace.scheduledfunction = ""
|
trace.scheduledfunction = ""
|
||||||
|
|
||||||
trace.names.all = false
|
trace.names.all = true
|
||||||
trace.names.New = false
|
trace.names.New = false
|
||||||
trace.names.Inherit = false
|
trace.names.Inherit = false
|
||||||
trace.names.do_scheduled_functions = false
|
trace.names.do_scheduled_functions = false
|
||||||
|
|||||||
Reference in New Issue
Block a user