npc overlay: use true tile for south west tile
This commit is contained in:
@@ -105,15 +105,12 @@ class NpcOverlay extends Overlay
|
|||||||
|
|
||||||
if (highlightedNpc.isSwTile())
|
if (highlightedNpc.isSwTile())
|
||||||
{
|
{
|
||||||
int size = npcComposition.getSize();
|
LocalPoint lp = LocalPoint.fromWorld(client, actor.getWorldLocation());
|
||||||
LocalPoint lp = actor.getLocalLocation();
|
if (lp != null)
|
||||||
|
{
|
||||||
int x = lp.getX() - ((size - 1) * Perspective.LOCAL_TILE_SIZE / 2);
|
Polygon tilePoly = Perspective.getCanvasTilePoly(client, lp);
|
||||||
int y = lp.getY() - ((size - 1) * Perspective.LOCAL_TILE_SIZE / 2);
|
renderPoly(graphics, borderColor, borderWidth, fillColor, tilePoly);
|
||||||
|
}
|
||||||
Polygon southWestTilePoly = Perspective.getCanvasTilePoly(client, new LocalPoint(x, y));
|
|
||||||
|
|
||||||
renderPoly(graphics, borderColor, borderWidth, fillColor, southWestTilePoly);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (highlightedNpc.isOutline())
|
if (highlightedNpc.isOutline())
|
||||||
|
|||||||
Reference in New Issue
Block a user