From a7a28c7c949fd069a03f79835701f5c1f65009ec Mon Sep 17 00:00:00 2001 From: Tobias Schmidt <13055656+schmidtnz@users.noreply.github.com> Date: Tue, 10 Dec 2024 11:32:24 +1300 Subject: [PATCH] fix: iterateMapSheets() returns too many tiles --- src/commands/tileindex-validate/tileindex.validate.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/tileindex-validate/tileindex.validate.ts b/src/commands/tileindex-validate/tileindex.validate.ts index ce56b113..0b6fa085 100644 --- a/src/commands/tileindex-validate/tileindex.validate.ts +++ b/src/commands/tileindex-validate/tileindex.validate.ts @@ -564,8 +564,8 @@ export function* iterateMapSheets(bounds: BBox, gridSize: GridSize): Generator= minY - tileHeight - 1; y -= tileHeight) { + for (let x = minX; x < maxX; x += tileWidth) { + for (let y = maxY; y > minY; y -= tileHeight) { yield getTileName(x, y, gridSize); } }