From 3431719e53db014630eed036c1b57e17d83fda5c Mon Sep 17 00:00:00 2001 From: Mathieu Ledru Date: Sat, 5 Oct 2024 17:17:00 +0200 Subject: [PATCH] fix tile analyse --- tile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tile.js b/tile.js index faac022..24a446c 100644 --- a/tile.js +++ b/tile.js @@ -26,8 +26,8 @@ class Tile { for (let i = 0; i < tiles.length; i++) { let tile = tiles[i]; - // Tile 5 can't match itself - if (tile.index == 5 && this.index == 5) continue; + // Tile can't match itself + if (tile.index === this.index) continue; // UP if (compareEdge(tile.edges[2], this.edges[0])) {