Merge pull request #3031 from AttackOfTheMoons/mark_of_grace_fix
client: fix the mark of grace highlighter to highlight the correct plane
This commit is contained in:
@@ -177,8 +177,7 @@ class AgilityOverlay extends Overlay
|
|||||||
if (tile.getPlane() == client.getPlane() && tile.getItemLayer() != null
|
if (tile.getPlane() == client.getPlane() && tile.getItemLayer() != null
|
||||||
&& tile.getLocalLocation().distanceTo(playerLocation) < MAX_DISTANCE)
|
&& tile.getLocalLocation().distanceTo(playerLocation) < MAX_DISTANCE)
|
||||||
{
|
{
|
||||||
final Polygon poly = tile.getItemLayer().getCanvasTilePoly();
|
final Polygon poly = Perspective.getCanvasTilePoly(client, tile.getLocalLocation(), tile.getPlane());
|
||||||
|
|
||||||
if (poly != null)
|
if (poly != null)
|
||||||
{
|
{
|
||||||
OverlayUtil.renderPolygon(graphics, poly, color);
|
OverlayUtil.renderPolygon(graphics, poly, color);
|
||||||
|
|||||||
Reference in New Issue
Block a user