From fc602ce9f440961f2f22a9775db6f95e4bc5cad2 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 16 Sep 2023 08:04:49 -0400 Subject: [PATCH] Test of raw heightmaps --- src/engine/InterestManagement/HeightMap.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/InterestManagement/HeightMap.java b/src/engine/InterestManagement/HeightMap.java index 5566f6e0..ba4df79a 100644 --- a/src/engine/InterestManagement/HeightMap.java +++ b/src/engine/InterestManagement/HeightMap.java @@ -91,7 +91,7 @@ public class HeightMap { float calculatedWidthX = this.fullExtentsX / numOfBucketsX; this.bucketWidthX = calculatedWidthX; - float numOfBucketsY = this.heightmapImage.getWidth() - 1; + float numOfBucketsY = this.heightmapImage.getHeight() - 1; float calculatedWidthY = this.fullExtentsY / numOfBucketsY; this.bucketWidthX = calculatedWidthY;