From 601e71b8465c963eab16ff0347e47e6551366a59 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Sat, 21 Sep 2024 02:09:16 +0200 Subject: [PATCH] fix: heightmap edit in Risk mode --- index.html | 2 +- modules/ui/heightmap-editor.js | 5 +++-- versioning.js | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 9b5d0e1d..edfc1915 100644 --- a/index.html +++ b/index.html @@ -8072,7 +8072,7 @@ - + diff --git a/modules/ui/heightmap-editor.js b/modules/ui/heightmap-editor.js index 5c167454..015303bf 100644 --- a/modules/ui/heightmap-editor.js +++ b/modules/ui/heightmap-editor.js @@ -75,7 +75,8 @@ function editHeightmap(options) { changeOnlyLand.checked = true; } else if (mode === "risk") { defs.selectAll("#land, #water").selectAll("path").remove(); - viewbox.selectAll("#coastline path, #lakes path, #oceanLayers path").remove(); + defs.select("#featurePaths").selectAll("path").remove(); + viewbox.selectAll("#coastline use, #lakes path, #oceanLayers path").remove(); changeOnlyLand.checked = false; } @@ -432,7 +433,7 @@ function editHeightmap(options) { if (erosionAllowed) { Rivers.specify(); - Lakes.generateName(); + Features.specify(); } // restore zones from grid diff --git a/versioning.js b/versioning.js index aecec460..6436c300 100644 --- a/versioning.js +++ b/versioning.js @@ -12,7 +12,7 @@ * * Example: 1.102.2 -> Major version 1, Minor version 102, Patch version 2 */ -const VERSION = "1.104.8"; +const VERSION = "1.104.9"; if (parseMapVersion(VERSION) !== VERSION) alert("versioning.js: Invalid format or parsing function"); {