v1.5.81 - svg coa load fix

This commit is contained in:
Azgaar 2021-03-01 02:46:41 +03:00
parent 49b9895b0b
commit 2f70df6c59
2 changed files with 4 additions and 6 deletions

View file

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