Skip to content

Commit

Permalink
Merge pull request #45 from matyo91/fix-tile
Browse files Browse the repository at this point in the history
Fix tile analyse
  • Loading branch information
shiffman authored Oct 6, 2024
2 parents 3dd2b8b + 3431719 commit 1ed9a68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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])) {
Expand Down

0 comments on commit 1ed9a68

Please sign in to comment.