don't draw markers if not required

This commit is contained in:
Azgaar 2022-04-27 00:32:42 +05:00
parent 1889ac919d
commit 937a92d7ef
2 changed files with 1 additions and 2 deletions

View file

@ -308,7 +308,7 @@ window.Submap = (function () {
if (options.lockMarkers) m.lock = true; if (options.lockMarkers) m.lock = true;
} }
} }
drawMarkers(); if (layerIsOn("toggleMarkers")) drawMarkers();
stage("Redraw emblems."); stage("Redraw emblems.");
drawEmblems(); drawEmblems();

View file

@ -170,7 +170,6 @@ window.UISubmap = (function () {
oldstate = null; // destroy old state to free memory oldstate = null; // destroy old state to free memory
restoreLayers(); restoreLayers();
turnButtonOn("toggleMarkers");
if (ThreeD.options.isOn) ThreeD.redraw(); if (ThreeD.options.isOn) ThreeD.redraw();
if ($("#worldConfigurator").is(":visible")) editWorld(); if ($("#worldConfigurator").is(":visible")) editWorld();
} }