mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
v1.5.81 - svg coa load fix
This commit is contained in:
parent
49b9895b0b
commit
2f70df6c59
2 changed files with 4 additions and 6 deletions
|
|
@ -1104,9 +1104,9 @@ function parseLoadedData(data) {
|
|||
for (const river of pack.rivers) {
|
||||
const el = document.getElementById("river"+river.i);
|
||||
if (el) {
|
||||
river.widthFactor = +el.getAttribute("data-width");
|
||||
el.removeAttribute("data-width");
|
||||
el.removeAttribute("data-increment");
|
||||
river.widthFactor = +this.getAttribute("data-width");
|
||||
river.discharge = pack.cells.fl[river.mouth] || 1;
|
||||
river.width = rn(river.length / 100, 2);
|
||||
river.sourceWidth = .1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue