fix: add parameters to getLinePower in heightmap-generator.js

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 14:18:57 +08:00 committed by GitHub
parent 9a16e06223
commit f3ca102bb8
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;
}
function getLinePower() {
function getLinePower(cells) {
const linePowerMap = {
1000: 0.75,
2000: 0.77,