From 7a90d55dd5e56e0a0c696557a41c8e95bc3c8deb Mon Sep 17 00:00:00 2001 From: Michael Hadley Date: Sat, 25 Nov 2017 07:06:14 -0600 Subject: [PATCH] Fix: WorldXY now passes recalculateFaces to TileXY methods --- v3/src/gameobjects/tilemap/components/PutTileAtWorldXY.js | 1 + v3/src/gameobjects/tilemap/components/RemoveTileAtWorldXY.js | 1 + 2 files changed, 2 insertions(+) diff --git a/v3/src/gameobjects/tilemap/components/PutTileAtWorldXY.js b/v3/src/gameobjects/tilemap/components/PutTileAtWorldXY.js index 020cab556..458063ce0 100644 --- a/v3/src/gameobjects/tilemap/components/PutTileAtWorldXY.js +++ b/v3/src/gameobjects/tilemap/components/PutTileAtWorldXY.js @@ -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; diff --git a/v3/src/gameobjects/tilemap/components/RemoveTileAtWorldXY.js b/v3/src/gameobjects/tilemap/components/RemoveTileAtWorldXY.js index dd2526df1..240f0190a 100644 --- a/v3/src/gameobjects/tilemap/components/RemoveTileAtWorldXY.js +++ b/v3/src/gameobjects/tilemap/components/RemoveTileAtWorldXY.js @@ -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;