diff --git a/src/tilemaps/components/PutTileAt.js b/src/tilemaps/components/PutTileAt.js index 2dcfe1237..5930f8847 100644 --- a/src/tilemaps/components/PutTileAt.js +++ b/src/tilemaps/components/PutTileAt.js @@ -37,7 +37,6 @@ var PutTileAt = function (tile, tileX, tileY, recalculateFaces, layer) if (tile instanceof Tile) { - if (layer.data[tileY][tileX] === null) { layer.data[tileY][tileX] = new Tile(layer, tile.index, tileX, tileY, layer.tileWidth, layer.tileHeight); @@ -49,7 +48,6 @@ var PutTileAt = function (tile, tileX, tileY, recalculateFaces, layer) var index = tile; if (layer.data[tileY][tileX] === null) { - layer.data[tileY][tileX] = new Tile(layer, index, tileX, tileY, layer.tileWidth, layer.tileHeight); } else @@ -68,7 +66,7 @@ var PutTileAt = function (tile, tileX, tileY, recalculateFaces, layer) { CalculateFacesAt(tileX, tileY, layer); } - + return newTile; };