mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
fix: heightmap edit in Risk mode
This commit is contained in:
parent
5964657a16
commit
601e71b846
3 changed files with 5 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue