mirror of
https://github.com/photonstorm/phaser
synced 2024-12-23 11:33:28 +00:00
Update PutTileAt.js
This commit is contained in:
parent
a40ff084f9
commit
cf622269e8
1 changed files with 1 additions and 3 deletions
|
@ -37,7 +37,6 @@ var PutTileAt = function (tile, tileX, tileY, recalculateFaces, layer)
|
||||||
|
|
||||||
if (tile instanceof Tile)
|
if (tile instanceof Tile)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (layer.data[tileY][tileX] === null)
|
if (layer.data[tileY][tileX] === null)
|
||||||
{
|
{
|
||||||
layer.data[tileY][tileX] = new Tile(layer, tile.index, tileX, tileY, layer.tileWidth, layer.tileHeight);
|
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;
|
var index = tile;
|
||||||
if (layer.data[tileY][tileX] === null)
|
if (layer.data[tileY][tileX] === null)
|
||||||
{
|
{
|
||||||
|
|
||||||
layer.data[tileY][tileX] = new Tile(layer, index, tileX, tileY, layer.tileWidth, layer.tileHeight);
|
layer.data[tileY][tileX] = new Tile(layer, index, tileX, tileY, layer.tileWidth, layer.tileHeight);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue