Fix: WorldXY now passes recalculateFaces to TileXY methods

This commit is contained in:
Michael Hadley 2017-11-25 07:06:14 -06:00
parent 7844927256
commit 7a90d55dd5
2 changed files with 2 additions and 0 deletions

View file

@ -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;

View file

@ -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;