Skip to content

Commit 38dc196

Browse files
committed
Fixed a problem with rendering objects
Were apparently not always rendered in the right place. At least this code was obviously wrong.
1 parent 658e4c2 commit 38dc196

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tiled/view/IsoMapView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ protected Point pixelToTileCoords(int x, int y)
373373
// First, make sure we are at the top left corner
374374

375375
x = x - (x % tileSize.width);
376-
y = y - (x % tileSize.height);
376+
y = y - (y % tileSize.height);
377377

378378
TilePos.x = (int) ((x / tileSize.width));
379379
TilePos.y = (int) ((y / tileSize.height));

0 commit comments

Comments
 (0)