From 83649e45a96e5d3adb1b283dcabf00ded6b83bd1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 18 Feb 2026 20:20:00 +0000 Subject: [PATCH] Remove comments from zones restoration code Co-authored-by: Azgaar <26469650+Azgaar@users.noreply.github.com> --- public/modules/ui/heightmap-editor.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/public/modules/ui/heightmap-editor.js b/public/modules/ui/heightmap-editor.js index e0ee2920..e5272c35 100644 --- a/public/modules/ui/heightmap-editor.js +++ b/public/modules/ui/heightmap-editor.js @@ -330,10 +330,8 @@ function editHeightmap(options) { c.y = p[1]; } - // recalculate zones to grid - store grid cell IDs in pack.zones for (const zone of pack.zones) { if (!zone.cells || !zone.cells.length) continue; - // Convert pack cell IDs to grid cell IDs zone.gridCells = zone.cells.map(i => pack.cells.g[i]); } @@ -445,12 +443,9 @@ function editHeightmap(options) { Lakes.defineNames(); } - // restore zones from grid - convert grid cell IDs back to pack cell IDs for (const zone of pack.zones) { if (!zone.gridCells || !zone.gridCells.length) continue; - // Find pack cells that correspond to the stored grid cells zone.cells = pack.cells.i.filter(i => zone.gridCells.includes(pack.cells.g[i])); - // Clean up temporary storage delete zone.gridCells; }