From d7cde3a77fb30e048864cb8f47bd28f94910c54a Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 11 Sep 2023 15:41:44 -0400 Subject: [PATCH] Grid flip testing --- src/engine/InterestManagement/HeightMap.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/engine/InterestManagement/HeightMap.java b/src/engine/InterestManagement/HeightMap.java index e6a78c6b..8193fdf1 100644 --- a/src/engine/InterestManagement/HeightMap.java +++ b/src/engine/InterestManagement/HeightMap.java @@ -376,13 +376,10 @@ public class HeightMap { int maxX = (int) (this.fullExtentsX / this.bucketWidthX); int maxY = (int) (this.fullExtentsY / this.bucketWidthY); - //flip the Y so it grabs from the bottom left instead of top left. - //zoneLoc.setY(maxZoneHeight - zoneLoc.y); - gridSquare = getGridSquare(zoneLoc); int gridX = (int) gridSquare.x; - int gridY = (int) (gridSquare.y); + int gridY = (int) gridSquare.y; if (gridX > maxX) gridX = maxX;