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:
parent
1739305d12
commit
e0d281272a
15
Movement.lua
15
Movement.lua
@ -67,12 +67,15 @@ 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)
|
||||||
for MovePrefixID, MovePrefix in pairs( self.MovePrefixes ) do
|
if GroupData and GroupData:isExist() then
|
||||||
if string.find( EventGroupName, MovePrefix, 1, true ) then
|
local EventGroupName = GroupData:getName()
|
||||||
self.AliveUnits = self.AliveUnits + 1
|
for MovePrefixID, MovePrefix in pairs( self.MovePrefixes ) do
|
||||||
self.MoveGroups[EventGroupName] = EventGroupName
|
if string.find( EventGroupName, MovePrefix, 1, true ) then
|
||||||
trace.l(self.ClassName, "OnBirth", self.AliveUnits )
|
self.AliveUnits = self.AliveUnits + 1
|
||||||
|
self.MoveGroups[EventGroupName] = EventGroupName
|
||||||
|
trace.l(self.ClassName, "OnBirth", self.AliveUnits )
|
||||||
|
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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user