From 0cfef1f5fc7c20247e539cb7acd7a1099ba18aa9 Mon Sep 17 00:00:00 2001 From: synth-ruiner Date: Fri, 26 Jan 2018 19:03:41 +0000 Subject: [PATCH] compare tiles properly --- includes/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/script.js b/includes/script.js index e79ecbe..1ec35fc 100644 --- a/includes/script.js +++ b/includes/script.js @@ -293,7 +293,7 @@ $(document).ready(function() { // even if we want to "always create new tiles" we still don't want to create duplicates // THIS SEEMS TO NOT BE WORKING var bestMatch = _.find(bitsyData.tiles, function(tile) { - return tile.bitmap === pseudoTile; + return _.isEqual(tile.bitmap, pseudoTile); }); if (bestMatch) {