mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user