This commit is contained in:
BeGj
2025-03-07 16:53:10 +00:00
parent 0ddfc942a4
commit 619891741f
15 changed files with 28 additions and 22 deletions
+2 -2
View File
@@ -332,8 +332,8 @@ function getArea(
visited: Set<string>,
targetType: TerrainType,
) {
let area = [];
let next = [[x, y]];
const area = [];
const next = [[x, y]];
while (next.length) {
const [x, y] = next.pop();
const key = `${x},${y}`;