Merge pull request #778 from Mongrelf/master

AI_A2A_Dispatcher CountCapAirborne and Detection Change for AcceptZones
This commit is contained in:
Sven Van de Velde
2018-02-13 19:19:25 +01:00
committed by GitHub
2 changed files with 8 additions and 3 deletions

View File

@@ -617,12 +617,16 @@ do -- DETECTION_BASE
end
if self.AcceptZones then
local AnyZoneDetection = false
for AcceptZoneID, AcceptZone in pairs( self.AcceptZones ) do
local AcceptZone = AcceptZone -- Core.Zone#ZONE_BASE
if AcceptZone:IsVec2InZone( DetectedObjectVec2 ) == false then
DetectionAccepted = false
if AcceptZone:IsVec2InZone( DetectedObjectVec2 ) then
AnyZoneDetection = true
end
end
if not AnyZoneDetection then
DetectionAccepted = false
end
end
if self.RejectZones then