mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2026-02-04 17:41:23 +01:00
fix: add parameters to getLinePower in heightmap-generator.js (#1256)
Previously `getLinePower` was defined without any parameters, which meant callers had to rely on global variable `cells` which overrides `cellDesired` value.
This commit is contained in:
parent
9a16e06223
commit
0feca43b14
1 changed files with 1 additions and 1 deletions
|
|
@ -106,7 +106,7 @@ window.HeightmapGenerator = (function () {
|
||||||
return blobPowerMap[cells] || 0.98;
|
return blobPowerMap[cells] || 0.98;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getLinePower() {
|
function getLinePower(cells) {
|
||||||
const linePowerMap = {
|
const linePowerMap = {
|
||||||
1000: 0.75,
|
1000: 0.75,
|
||||||
2000: 0.77,
|
2000: 0.77,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue