fix: heightmap edit in Risk mode

This commit is contained in:
Azgaar 2024-09-21 02:09:16 +02:00 committed by sofronaspe
parent 7b526cc536
commit 4c2f878225
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;
}
@ -435,7 +436,7 @@ function editHeightmap(options) {
if (erosionAllowed) {
Rivers.specify();
Lakes.generateName();
Features.specify();
}
// restore zones from grid