mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fix map issues when debugging tools are disabled.
This commit is contained in:
parent
ee77516716
commit
1b640f40dc
@ -1001,6 +1001,10 @@ function drawUnculledZones() {
|
|||||||
function drawIpZones() {
|
function drawIpZones() {
|
||||||
ipZones.clearLayers();
|
ipZones.clearLayers();
|
||||||
|
|
||||||
|
if (!ENABLE_EXPENSIVE_DEBUG_TOOLS) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
L.polygon(game.ipZones.homeBubble, {
|
L.polygon(game.ipZones.homeBubble, {
|
||||||
color: Colors.Highlight,
|
color: Colors.Highlight,
|
||||||
fillOpacity: 0.1,
|
fillOpacity: 0.1,
|
||||||
@ -1031,6 +1035,10 @@ function drawIpZones() {
|
|||||||
function drawJoinZones() {
|
function drawJoinZones() {
|
||||||
joinZones.clearLayers();
|
joinZones.clearLayers();
|
||||||
|
|
||||||
|
if (!ENABLE_EXPENSIVE_DEBUG_TOOLS) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
L.polygon(game.joinZones.homeBubble, {
|
L.polygon(game.joinZones.homeBubble, {
|
||||||
color: Colors.Highlight,
|
color: Colors.Highlight,
|
||||||
fillOpacity: 0.1,
|
fillOpacity: 0.1,
|
||||||
@ -1069,6 +1077,10 @@ function drawJoinZones() {
|
|||||||
function drawHoldZones() {
|
function drawHoldZones() {
|
||||||
holdZones.clearLayers();
|
holdZones.clearLayers();
|
||||||
|
|
||||||
|
if (!ENABLE_EXPENSIVE_DEBUG_TOOLS) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
L.polygon(game.holdZones.homeBubble, {
|
L.polygon(game.holdZones.homeBubble, {
|
||||||
color: Colors.Highlight,
|
color: Colors.Highlight,
|
||||||
fillOpacity: 0.1,
|
fillOpacity: 0.1,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user