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();
|
Point p = client.getMouseCanvasPosition();
|
||||||
p = new Point(
|
p = new Point(
|
||||||
p.getX() - client.getViewportXOffset(),
|
p.getX() - client.getViewportXOffset(),
|
||||||
p.getY() - client.getViewportYOffset());
|
p.getY() - client.getViewportYOffset());
|
||||||
|
|
||||||
client.setCheckClick(true);
|
client.setCheckClick(true);
|
||||||
client.setMouseCanvasHoverPosition(p);
|
client.setMouseCanvasHoverPosition(p);
|
||||||
@@ -99,12 +99,7 @@ public class TileIndicatorsOverlay extends Overlay
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
Polygon poly = Perspective.getCanvasTilePoly(client, playerPosLocal);
|
renderTile(graphics, playerPosLocal, config.highlightCurrentColor());
|
||||||
if (poly == null)
|
|
||||||
{
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
renderTile(graphics, client.getLocalDestinationLocation(), config.highlightCurrentColor());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user