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() {
|
||||
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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user