compare tiles properly

This commit is contained in:
synth-ruiner 2018-01-26 19:03:41 +00:00
parent 60b4846779
commit 0cfef1f5fc
1 changed files with 1 additions and 1 deletions

View File

@ -293,7 +293,7 @@ $(document).ready(function() {
// even if we want to "always create new tiles" we still don't want to create duplicates // even if we want to "always create new tiles" we still don't want to create duplicates
// THIS SEEMS TO NOT BE WORKING // THIS SEEMS TO NOT BE WORKING
var bestMatch = _.find(bitsyData.tiles, function(tile) { var bestMatch = _.find(bitsyData.tiles, function(tile) {
return tile.bitmap === pseudoTile; return _.isEqual(tile.bitmap, pseudoTile);
}); });
if (bestMatch) { if (bestMatch) {