Skip to content

Commit

Permalink
v1.651 - hotfix - unhide rivers layer
Browse files Browse the repository at this point in the history
  • Loading branch information
Azgaar committed Jul 29, 2021
1 parent 9604d4a commit fe63206
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions modules/load.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -733,6 +735,11 @@ function parseLoadedData(data) {
});
}
}

if (version < 1.651) {
// remove style to unhide river layer
rivers.attr("style", null);
}
})();

void (function checkDataIntegrity() {
Expand Down

0 comments on commit fe63206

Please sign in to comment.