Fixed a bug in the event handler due to a stupid added trace. removed the trace.

This commit is contained in:
FlightControl
2016-07-19 22:03:39 +02:00
parent 9b15ec1988
commit 5e77d30caa
37 changed files with 2 additions and 5 deletions

View File

@@ -719,7 +719,6 @@ function EVENT:onEvent( Event )
end
self:E( { _EVENTCODES[Event.id], Event.IniUnitName, Event.TgtUnitName, Event.WeaponName } )
for ClassName, EventData in pairs( self.Events[Event.id] ) do
self:T( { "Evaluating class ", { EventData.EventSelf:GetClassNameAndID(), ClassName } } )
if Event.IniDCSUnitName and EventData.IniUnit and EventData.IniUnit[Event.IniDCSUnitName] then
self:T( { "Calling event function for class ", ClassName, " unit ", Event.IniUnitName } )
EventData.IniUnit[Event.IniDCSUnitName].EventFunction( EventData.IniUnit[Event.IniDCSUnitName].EventSelf, Event )