v1.651 - hotfix - unhide rivers layer

This commit is contained in:
Azgaar 2021-07-29 20:03:20 +03:00
parent 9604d4ae41
commit fe63206b35
2 changed files with 8 additions and 1 deletions

View file

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

View file

@ -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() {