Fix map issues when debugging tools are disabled.

This commit is contained in:
Dan Albert 2021-07-16 00:26:42 -07:00
parent ee77516716
commit 1b640f40dc

View File

@ -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,