Skip to content
Snippets Groups Projects
Commit 8d7a5d3c authored by Fabian Homborg's avatar Fabian Homborg
Browse files

Don't update tiles if none was moved

parent 740fdb6f
No related branches found
No related tags found
No related merge requests found
......@@ -113,8 +113,8 @@ Tiling.prototype.swapTiles = function(tile1, tile2) {
var index2 = this.tiles.indexOf(tile2);
this.tiles[index1] = tile2;
this.tiles[index2] = tile1;
this._updateAllTiles();
}
this._updateAllTiles();
} catch(err) {
print(err, "in Tiling.swapTiles");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment