mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 05:33:35 +00:00
Fix: WorldXY now passes recalculateFaces to TileXY methods
This commit is contained in:
parent
7844927256
commit
7a90d55dd5
2 changed files with 2 additions and 0 deletions
|
@ -7,6 +7,7 @@ var PutTileAtWorldXY = function (tile, worldX, worldY, recalculateFaces, camera,
|
|||
var tileX = WorldToTileX(worldX, camera, layer);
|
||||
var tileY = WorldToTileY(worldY, camera, layer);
|
||||
return PutTileAt(tile, tileX, tileY, layer);
|
||||
return PutTileAt(tile, tileX, tileY, recalculateFaces, layer);
|
||||
};
|
||||
|
||||
module.exports = PutTileAtWorldXY;
|
||||
|
|
|
@ -7,6 +7,7 @@ var RemoveTileAtWorldXY = function (worldX, worldY, replaceWithNull, recalculate
|
|||
var tileX = WorldToTileX(worldX, camera, layer);
|
||||
var tileY = WorldToTileY(worldY, camera, layer);
|
||||
return RemoveTileAt(tileX, tileY, replaceWithNull, layer);
|
||||
return RemoveTileAt(tileX, tileY, replaceWithNull, recalculateFaces, layer);
|
||||
};
|
||||
|
||||
module.exports = RemoveTileAtWorldXY;
|
||||
|
|
Loading…
Reference in a new issue