fix: heightmap edit in Risk mode

This commit is contained in:
Azgaar 2024-09-21 02:09:16 +02:00
parent 5964657a16
commit 601e71b846
3 changed files with 5 additions and 4 deletions

View file

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