From fe63206b35d4ecb09409ab72840fce8eb492dae6 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Thu, 29 Jul 2021 20:03:20 +0300 Subject: [PATCH] v1.651 - hotfix - unhide rivers layer --- main.js | 2 +- modules/load.js | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index d66c53006..c2c4301a4 100644 --- a/main.js +++ b/main.js @@ -2,7 +2,7 @@ // https://github.com/Azgaar/Fantasy-Map-Generator "use strict"; -const version = "1.65"; // generator version1 +const version = "1.651"; // generator version1 document.title += " v" + version; // Switches to disable/enable logging features diff --git a/modules/load.js b/modules/load.js index 96a2845d6..d29bd302d 100644 --- a/modules/load.js +++ b/modules/load.js @@ -709,6 +709,8 @@ function parseLoadedData(data) { if (version < 1.65) { // v 1.65 changed rivers data + rivers.attr("style", null); // remove style to unhide layer + for (const river of pack.rivers) { const node = document.getElementById("river" + river.i); if (node && !river.cells) { @@ -733,6 +735,11 @@ function parseLoadedData(data) { }); } } + + if (version < 1.651) { + // remove style to unhide river layer + rivers.attr("style", null); + } })(); void (function checkDataIntegrity() {