Skip to content

Commit b4d9d71

Browse files
committed
fixed orthogonal world to tile
1 parent 9bd3108 commit b4d9d71

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/tilemaps/components/WorldToTileXY.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ var OrthoWorldToTileXY = function (worldX, worldY, snapToFloor, point, camera, l
3131
{
3232
if (point === undefined) { point = new Vector2(0, 0); }
3333

34-
point.x = WorldToTileX(worldX, snapToFloor, camera, layer);
35-
point.y = WorldToTileY(worldY, snapToFloor, camera, layer);
34+
point.x = WorldToTileX(CONST.ORTHOGONAL)(worldX, snapToFloor, camera, layer);
35+
point.y = WorldToTileY(CONST.ORTHOGONAL)(worldY, snapToFloor, camera, layer);
3636
return point;
3737
};
3838

0 commit comments

Comments
 (0)