mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
fix: temporarily removed radarState due to hasSensors() API causing crashes
This commit is contained in:
parent
13ec455d74
commit
dc01620b8c
@ -1276,13 +1276,14 @@ function Olympus.setUnitsData(arg, time)
|
||||
|
||||
table["isAlive"] = unit:isExist() and unit:isActive() and unit:getLife() >= 1
|
||||
|
||||
if unit:isActive() and unit:hasSensors(Unit.SensorType.RADAR) then
|
||||
--[[ COMMENTING OUT BECAUSE OF CRASHES -- TO BE INVESTIGATED LATER ON ]]--
|
||||
--[[ if unit:isActive() and unit:hasSensors(Unit.SensorType.RADAR) then
|
||||
if unit:getRadar() then
|
||||
table["radarState"] = true
|
||||
else
|
||||
table["radarState"] = false
|
||||
end
|
||||
end
|
||||
end ]]
|
||||
|
||||
local group = unit:getGroup()
|
||||
if group ~= nil then
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user