fixed independent ttw calls in physics/arcade/World.js

This commit is contained in:
Svipal 2020-04-13 18:40:58 +02:00
parent 91967e37ca
commit aae73c3cb8

View file

@ -2210,8 +2210,10 @@ var World = new Class({
tilemapLayer = tile.tilemapLayer; tilemapLayer = tile.tilemapLayer;
tileWorldRect.left = tilemapLayer.tileToWorldX(tile.x); var point = tilemapLayer.tileToWorldXY(tile.x,tile.y);
tileWorldRect.top = tilemapLayer.tileToWorldY(tile.y);
tileWorldRect.left = point.x;
tileWorldRect.top = point.y;
// If the map's base tile size differs from the layer's tile size, only the top of the rect // If the map's base tile size differs from the layer's tile size, only the top of the rect
// needs to be adjusted since its origin is (0, 1). // needs to be adjusted since its origin is (0, 1).