Removing test on detection visible

This commit is contained in:
FlightControl_Master 2018-03-22 06:17:39 +01:00
parent cbb800de02
commit 0d8f3d25e9

View File

@ -577,7 +577,7 @@ do -- DETECTION_BASE
self:T2( { TargetIsDetected = TargetIsDetected, TargetIsVisible = TargetIsVisible, TargetLastTime = TargetLastTime, TargetKnowType = TargetKnowType, TargetKnowDistance = TargetKnowDistance, TargetLastPos = TargetLastPos, TargetLastVelocity = TargetLastVelocity } )
-- Only process if the target is visible. Detection also returns invisible units.
if Detection.visible == true then
--if Detection.visible == true then
local DetectionAccepted = true
@ -713,7 +713,7 @@ do -- DETECTION_BASE
self.DetectedObjects[DetectedObjectName] = nil
end
end
end
--end
end
self:T2( self.DetectedObjects )