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

@@ -1454,7 +1454,8 @@ function SET_UNIT:IsIncludeObject( MUnit )
local MUnitRadar = false
for RadarTypeID, RadarType in pairs( self.Filter.RadarTypes ) do
self:E( { "Radar:", RadarType } )
if MUnit:HasSensors( Unit.SensorType.RADAR, RadarType ) then
if MUnit:HasSensors( Unit.SensorType.RADAR, RadarType ) == true then
self:E( "RADAR Found" )
MUnitRadar = true
end
end