This commit is contained in:
FlightControl
2019-03-20 18:15:37 +01:00
parent 985282ba55
commit 964a6d0708
3 changed files with 1 additions and 7 deletions
@@ -2107,11 +2107,8 @@ do -- Players
local PlayerNames = {}
self:F({Group = self:GetName()})
local Units = self:GetUnits()
for UnitID, UnitData in pairs( Units ) do
self:F({UnitData:GetName()})
local Unit = UnitData -- Wrapper.Unit#UNIT
local PlayerName = Unit:GetPlayerName()
if PlayerName and PlayerName ~= "" then
-3
View File
@@ -330,10 +330,7 @@ function UNIT:GetPlayerName()
if DCSUnit then
self:F({self:GetName()})
local PlayerName = DCSUnit:getPlayerName()
self:F({PlayerName = PlayerName})
-- TODO Workaround DCS-BUG-3 - https://github.com/FlightControl-Master/MOOSE/issues/696
-- if PlayerName == nil or PlayerName == "" then
-- local PlayerCategory = DCSUnit:getDesc().category