Skip to content

Commit 1ed9a68

Browse files
authored
Merge pull request #45 from matyo91/fix-tile
Fix tile analyse
2 parents 3dd2b8b + 3431719 commit 1ed9a68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tile.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ class Tile {
2626
for (let i = 0; i < tiles.length; i++) {
2727
let tile = tiles[i];
2828

29-
// Tile 5 can't match itself
30-
if (tile.index == 5 && this.index == 5) continue;
29+
// Tile can't match itself
30+
if (tile.index === this.index) continue;
3131

3232
// UP
3333
if (compareEdge(tile.edges[2], this.edges[0])) {

0 commit comments

Comments
 (0)