diff --git a/resources/ui/map/map.js b/resources/ui/map/map.js index 7ac1dac2..831701a9 100644 --- a/resources/ui/map/map.js +++ b/resources/ui/map/map.js @@ -1001,6 +1001,10 @@ function drawUnculledZones() { function drawIpZones() { ipZones.clearLayers(); + if (!ENABLE_EXPENSIVE_DEBUG_TOOLS) { + return; + } + L.polygon(game.ipZones.homeBubble, { color: Colors.Highlight, fillOpacity: 0.1, @@ -1031,6 +1035,10 @@ function drawIpZones() { function drawJoinZones() { joinZones.clearLayers(); + if (!ENABLE_EXPENSIVE_DEBUG_TOOLS) { + return; + } + L.polygon(game.joinZones.homeBubble, { color: Colors.Highlight, fillOpacity: 0.1, @@ -1069,6 +1077,10 @@ function drawJoinZones() { function drawHoldZones() { holdZones.clearLayers(); + if (!ENABLE_EXPENSIVE_DEBUG_TOOLS) { + return; + } + L.polygon(game.holdZones.homeBubble, { color: Colors.Highlight, fillOpacity: 0.1,