From ee809ddb3751055066e11d008e06781242d8df59 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 17 Sep 2023 12:01:13 -0400 Subject: [PATCH] clamping cleaned up. --- src/engine/InterestManagement/HeightMap.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/engine/InterestManagement/HeightMap.java b/src/engine/InterestManagement/HeightMap.java index 15c16f9e..76ce63b6 100644 --- a/src/engine/InterestManagement/HeightMap.java +++ b/src/engine/InterestManagement/HeightMap.java @@ -356,9 +356,6 @@ public class HeightMap { Vector2f gridSquare; - int maxX = (int) (this.fullExtentsX / this.bucketWidthX); - int maxY = (int) (this.fullExtentsY / this.bucketWidthY); - gridSquare = getGridSquare(zoneLoc); int gridX = (int) gridSquare.x; @@ -377,12 +374,6 @@ public class HeightMap { int nextY = gridY + 1; int nextX = gridX + 1; - if (nextY > maxY) - nextY = gridY; - - if (nextX > maxX) - nextX = gridX; - topLeftHeight = pixelColorValues[gridX][gridY]; topRightHeight = pixelColorValues[nextX][gridY]; bottomLeftHeight = pixelColorValues[gridX][nextY];