perspective: fix regression caused by 2599db2

This commit is contained in:
Kamiel
2018-07-18 23:50:09 +02:00
parent 9fa8e1271a
commit d6906e735b

View File

@@ -293,8 +293,8 @@ public class Perspective
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),
localLocation.getY() - (size * LOCAL_TILE_SIZE / 2));
Point southWestCorner = new Point(localLocation.getX() - (size * LOCAL_TILE_SIZE / 2) + 1,
localLocation.getY() - (size * LOCAL_TILE_SIZE / 2) + 1);
// expand by size
Point northEastCorner = new Point(southWestCorner.getX() + size * LOCAL_TILE_SIZE - 1,
southWestCorner.getY() + size * LOCAL_TILE_SIZE - 1);