add small code tweaks

This commit is contained in:
Gabriele Cirulli
2014-03-12 12:15:57 +01:00
parent 39ebf51ce2
commit b080e5300d
4 changed files with 13 additions and 12 deletions
-2
View File
@@ -211,8 +211,6 @@ GameManager.prototype.tileMatchesAvailable = function () {
var cell = { x: x + vector.x, y: y + vector.y };
var other = self.grid.cellContent(cell);
if (other) {
}
if (other && other.value === tile.value) {
return true; // These two tiles can be merged