Tasking trace optimizations

This commit is contained in:
FlightControl_Master
2017-12-11 13:32:42 +01:00
parent ef1290015e
commit 37dc49c14f
5 changed files with 10 additions and 11 deletions

View File

@@ -306,12 +306,12 @@ function BASE:GetParent( Child, FromClass )
Parent = nil
else
self:E({FromClass = FromClass})
self:E({Child = Child.ClassName})
--self:E({FromClass = FromClass})
--self:E({Child = Child.ClassName})
if FromClass then
while( Child.ClassName ~= "BASE" and Child.ClassName ~= FromClass.ClassName ) do
Child = getParent( Child )
self:E({Child.ClassName})
--self:E({Child.ClassName})
end
end
if Child.ClassName == 'BASE' then
@@ -320,7 +320,7 @@ function BASE:GetParent( Child, FromClass )
Parent = getParent( Child )
end
end
self:E({Parent.ClassName})
--self:E({Parent.ClassName})
return Parent
end