* Fixes for AI_A2A_GCICAP, tracing the setup information.

* Fixed Spawning in air bug, Takeoff event generation parameters mismatch solved.
This commit is contained in:
FlightControl_Master
2017-10-18 09:03:13 +02:00
parent c27197500c
commit d3b5c77e5c
3 changed files with 16 additions and 6 deletions

View File

@@ -744,13 +744,15 @@ function EVENT:onEvent( Event )
local EventMeta = _EVENTMETA[Event.id]
--self:E( { EventMeta.Text, Event } ) -- Activate the see all incoming events ...
if self and
self.Events and
self.Events[Event.id] and
( Event.initiator ~= nil or ( Event.initiator == nil and Event.id ~= EVENTS.PlayerLeaveUnit ) ) then
if Event.initiator then
Event.IniObjectCategory = Event.initiator:getCategory()
if Event.IniObjectCategory == Object.Category.UNIT then