Correct creation and interpretation of the HasRadar function for SET_UNIT.

Fixed SEAD_Process bug. Now the SEAD targets are correctly calculated.
This commit is contained in:
FlightControl
2016-07-10 15:03:25 +02:00
parent 153ff7bd58
commit def75889ad
3 changed files with 5 additions and 1 deletions

View File

@@ -352,6 +352,7 @@ function UNIT:HasSensors( ... )
local DCSUnit = self:GetDCSObject()
if DCSUnit then
self:E( arg )
local HasSensors = DCSUnit:hasSensors( unpack( arg ) )
return HasSensors
end