mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
Update heightmap-generator.js (#389)
move 'range = query.slice()' out of 'range.forEach'
This commit is contained in:
parent
6fbb1a2944
commit
2f14d7ac46
1 changed files with 2 additions and 2 deletions
|
|
@ -478,9 +478,9 @@
|
||||||
cells.h[e] **= exp;
|
cells.h[e] **= exp;
|
||||||
if (cells.h[e] > 100) cells.h[e] = 5;
|
if (cells.h[e] > 100) cells.h[e] = 5;
|
||||||
});
|
});
|
||||||
|
|
||||||
range = query.slice();
|
|
||||||
});
|
});
|
||||||
|
range = query.slice();
|
||||||
|
|
||||||
width--;
|
width--;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue