Use current tile instead of target tile for current tile rendering

This commit is contained in:
jesse1412
2019-02-10 18:54:44 +00:00
parent 10fa8ce5f3
commit d0b4038abe

View File

@@ -66,8 +66,8 @@ public class TileIndicatorsOverlay extends Overlay
{
Point p = client.getMouseCanvasPosition();
p = new Point(
p.getX() - client.getViewportXOffset(),
p.getY() - client.getViewportYOffset());
p.getX() - client.getViewportXOffset(),
p.getY() - client.getViewportYOffset());
client.setCheckClick(true);
client.setMouseCanvasHoverPosition(p);
@@ -99,12 +99,7 @@ public class TileIndicatorsOverlay extends Overlay
return null;
}
Polygon poly = Perspective.getCanvasTilePoly(client, playerPosLocal);
if (poly == null)
{
return null;
}
renderTile(graphics, client.getLocalDestinationLocation(), config.highlightCurrentColor());
renderTile(graphics, playerPosLocal, config.highlightCurrentColor());
}
return null;