From 0feca43b14ad65e0663754c043ebbb4d8cb6b139 Mon Sep 17 00:00:00 2001 From: Pinyang Yuan Date: Mon, 5 Jan 2026 20:14:13 +0800 Subject: [PATCH] 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. --- 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,