From f3ca102bb8a16255b0b3240b0150932c1fb6a3d1 Mon Sep 17 00:00:00 2001 From: Pinyang Yuan Date: Mon, 5 Jan 2026 14:18:57 +0800 Subject: [PATCH] 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. --- modules/heightmap-generator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/heightmap-generator.js b/modules/heightmap-generator.js index 5a69337e..87bc02d5 100644 --- a/modules/heightmap-generator.js +++ b/modules/heightmap-generator.js @@ -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,