mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
v1.651 - hotfix - unhide rivers layer
This commit is contained in:
parent
9604d4ae41
commit
fe63206b35
2 changed files with 8 additions and 1 deletions
2
main.js
2
main.js
|
|
@ -2,7 +2,7 @@
|
||||||
// https://github.com/Azgaar/Fantasy-Map-Generator
|
// https://github.com/Azgaar/Fantasy-Map-Generator
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
const version = "1.65"; // generator version1
|
const version = "1.651"; // generator version1
|
||||||
document.title += " v" + version;
|
document.title += " v" + version;
|
||||||
|
|
||||||
// Switches to disable/enable logging features
|
// Switches to disable/enable logging features
|
||||||
|
|
|
||||||
|
|
@ -709,6 +709,8 @@ function parseLoadedData(data) {
|
||||||
|
|
||||||
if (version < 1.65) {
|
if (version < 1.65) {
|
||||||
// v 1.65 changed rivers data
|
// v 1.65 changed rivers data
|
||||||
|
rivers.attr("style", null); // remove style to unhide layer
|
||||||
|
|
||||||
for (const river of pack.rivers) {
|
for (const river of pack.rivers) {
|
||||||
const node = document.getElementById("river" + river.i);
|
const node = document.getElementById("river" + river.i);
|
||||||
if (node && !river.cells) {
|
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() {
|
void (function checkDataIntegrity() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue