diff --git a/ComboZone.lua b/ComboZone.lua index 1e3bc80..cea5f09 100644 --- a/ComboZone.lua +++ b/ComboZone.lua @@ -189,6 +189,7 @@ function ComboZone:AddZone(zone) if self.useGrid == nil and newIndex >= 25 then self.useGrid = true end + if self.debugBlip then zone:addDebugBlip() end end function ComboZone:isPointInside(point) @@ -298,25 +299,12 @@ function ComboZone:onPlayerInOutExhaustive(onPointInOutCb, waitInMS) end function ComboZone:addDebugBlip() + self.debugBlip = true local zones = self.zones - local polyCount, boxCount, circleCount, entityCount = 0, 0, 0, 0 for i=1, #zones do local zone = zones[i] - if zone then - zone:addDebugBlip() - if zone.isPolyZone then polyCount = polyCount + 1 end - if zone.isBoxZone then boxCount = boxCount + 1 end - if zone.isCircleZone then circleCount = circleCount + 1 end - if zone.isEntityZone then entityCount = entityCount + 1 end - end + if zone then zone:addDebugBlip() end end - local name = self.name ~= nil and ("\"" .. self.name .. "\"") or nil - print("[PolyZone] Debug for ComboZone { name = " .. tostring(name) .. " }:") - print("[PolyZone] Total zones: " .. #zones) - print("[PolyZone] BoxZones: " .. boxCount) - print("[PolyZone] CircleZones: " .. circleCount) - print("[PolyZone] PolyZones: " .. polyCount) - print("[PolyZone] EntityZones: " .. entityCount) end function ComboZone:setPaused(paused)