Fixes issue where some nested components were drawn at the incorrect locations.
@@ -130,11 +130,8 @@ public final class TileGrid {
childLock.readLock().lock();
for (final TileGrid childGrid : childGrids) {
- final int childXPos = childGrid.getXPosition();
- final int childYPos = childGrid.getYPosition();
-
- final int tempX = tileX - (childXPos == position.x ? 0 : childXPos);
- final int tempY = tileY - (childYPos == position.y ? 0 : childYPos);
+ final int tempX = tileX - childGrid.getXPosition();
+ final int tempY = tileY - childGrid.getYPosition();
childGrid.drawTile(gc, imageCache, tempX, tempY, drawX, drawY);
}
