Use current tile instead of target tile for current tile rendering
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user