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:
Pinyang Yuan 2026-01-05 20:14:13 +08:00 committed by GitHub
parent 9a16e06223
commit 0feca43b14
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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