Skip to content

Commit

Permalink
Revert "perspective: fix regression caused by 2599db2"
Browse files Browse the repository at this point in the history
This reverts commit d6906e7.
  • Loading branch information
Adam- committed Jul 27, 2018
1 parent b6954e0 commit bed529d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runelite-api/src/main/java/net/runelite/api/Perspective.java
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,8 @@ public static Polygon getCanvasTileAreaPoly(@Nonnull Client client, @Nonnull Loc
int plane = client.getPlane();

// Shift over one half tile as localLocation is the center point of the tile, and then shift the area size
Point southWestCorner = new Point(localLocation.getX() - (size * LOCAL_TILE_SIZE / 2) + 1,
localLocation.getY() - (size * LOCAL_TILE_SIZE / 2) + 1);
Point southWestCorner = new Point(localLocation.getX() - (size * LOCAL_TILE_SIZE / 2),
localLocation.getY() - (size * LOCAL_TILE_SIZE / 2));
// expand by size
Point northEastCorner = new Point(southWestCorner.getX() + size * LOCAL_TILE_SIZE - 1,
southWestCorner.getY() + size * LOCAL_TILE_SIZE - 1);
Expand Down

0 comments on commit bed529d

Please sign in to comment.