Skip to content

Commit aae73c3

Browse files
committed
fixed independent ttw calls in physics/arcade/World.js
1 parent 91967e3 commit aae73c3

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/physics/arcade/World.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2210,8 +2210,10 @@ var World = new Class({
22102210

22112211
tilemapLayer = tile.tilemapLayer;
22122212

2213-
tileWorldRect.left = tilemapLayer.tileToWorldX(tile.x);
2214-
tileWorldRect.top = tilemapLayer.tileToWorldY(tile.y);
2213+
var point = tilemapLayer.tileToWorldXY(tile.x,tile.y);
2214+
2215+
tileWorldRect.left = point.x;
2216+
tileWorldRect.top = point.y;
22152217

22162218
// If the map's base tile size differs from the layer's tile size, only the top of the rect
22172219
// needs to be adjusted since its origin is (0, 1).

0 commit comments

Comments
 (0)