mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Merge pull request #10 from FlightControl-Master/Remove-trace-function-from-MESSAGE-Class
Remove trace function from message class
This commit is contained in:
commit
d735332c0d
@ -831,7 +831,7 @@ end
|
|||||||
|
|
||||||
--- Get the index from a given group.
|
--- Get the index from a given group.
|
||||||
-- The function will search the name of the group for a #, and will return the number behind the #-mark.
|
-- The function will search the name of the group for a #, and will return the number behind the #-mark.
|
||||||
function SPAWN:_GetGroupIndexFromGroup( SpawnGroup )
|
function SPAWN:GetSpawnIndexFromGroup( SpawnGroup )
|
||||||
self:T( { self.SpawnTemplatePrefix, self.SpawnAliasPrefix, SpawnGroup } )
|
self:T( { self.SpawnTemplatePrefix, self.SpawnAliasPrefix, SpawnGroup } )
|
||||||
|
|
||||||
local IndexString = string.match( SpawnGroup:GetName(), "#.*$" ):sub( 2 )
|
local IndexString = string.match( SpawnGroup:GetName(), "#.*$" ):sub( 2 )
|
||||||
@ -1137,7 +1137,7 @@ function SPAWN:_OnLand( event )
|
|||||||
self.Landed = true
|
self.Landed = true
|
||||||
self:T( "self.Landed = true" )
|
self:T( "self.Landed = true" )
|
||||||
if self.Landed and self.RepeatOnLanding then
|
if self.Landed and self.RepeatOnLanding then
|
||||||
local SpawnGroupIndex = self:_GetGroupIndexFromGroup( SpawnGroup )
|
local SpawnGroupIndex = self:GetSpawnIndexFromGroup( SpawnGroup )
|
||||||
self:T( { "Landed:", "ReSpawn:", SpawnGroup:GetName(), SpawnGroupIndex } )
|
self:T( { "Landed:", "ReSpawn:", SpawnGroup:GetName(), SpawnGroupIndex } )
|
||||||
self:ReSpawn( SpawnGroupIndex )
|
self:ReSpawn( SpawnGroupIndex )
|
||||||
end
|
end
|
||||||
@ -1158,7 +1158,7 @@ function SPAWN:_OnLand( event )
|
|||||||
if SpawnGroup then
|
if SpawnGroup then
|
||||||
self:T( { "EngineShutDown event: " .. event.initiator:getName(), event } )
|
self:T( { "EngineShutDown event: " .. event.initiator:getName(), event } )
|
||||||
if self.Landed and self.RepeatOnEngineShutDown then
|
if self.Landed and self.RepeatOnEngineShutDown then
|
||||||
local SpawnGroupIndex = self:_GetGroupIndexFromGroup( SpawnGroup )
|
local SpawnGroupIndex = self:GetSpawnIndexFromGroup( SpawnGroup )
|
||||||
self:T( { "EngineShutDown: ", "ReSpawn:", SpawnGroup:GetName(), SpawnGroupIndex } )
|
self:T( { "EngineShutDown: ", "ReSpawn:", SpawnGroup:GetName(), SpawnGroupIndex } )
|
||||||
self:ReSpawn( SpawnGroupIndex )
|
self:ReSpawn( SpawnGroupIndex )
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user