This commit is contained in:
FlightControl
2019-04-16 19:49:46 +02:00
parent 03c47cc9f9
commit d985d9a41d
2 changed files with 3 additions and 2 deletions

View File

@@ -890,7 +890,7 @@ end
-- @param #DATABASE self
-- @param Core.Event#EVENTDATA Event
function DATABASE:_EventOnBirth( Event )
self:F2( { Event } )
self:F( { Event } )
if Event.IniDCSUnit then
if Event.IniObjectCategory == 3 then
@@ -907,6 +907,7 @@ function DATABASE:_EventOnBirth( Event )
local PlayerName = Event.IniUnit:GetPlayerName()
if PlayerName then
self:I( { "Player Joined:", PlayerName } )
self:AddClient( Event.IniDCSUnitName )
if not self.PLAYERS[PlayerName] then
self:AddPlayer( Event.IniUnitName, PlayerName )
end