From e7ceeac7b84ebc8eec582f1e389ed7cc195cb3f9 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 14 Mar 2023 13:10:05 -0400 Subject: [PATCH] Magic numbers are for mental patients. --- src/engine/InterestManagement/HeightMap.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/engine/InterestManagement/HeightMap.java b/src/engine/InterestManagement/HeightMap.java index 50f2cf0a..ec46998a 100644 --- a/src/engine/InterestManagement/HeightMap.java +++ b/src/engine/InterestManagement/HeightMap.java @@ -100,11 +100,7 @@ public class HeightMap { float numOfBuckets = this.heightmapImage.getWidth() - 1; float calculatedWidth = this.fullExtentsX / numOfBuckets; this.bucketWidthX = calculatedWidth; - - numOfBuckets = this.heightmapImage.getHeight() - 1; - calculatedWidth = this.fullExtentsY / numOfBuckets; - - this.bucketWidthY = calculatedWidth; // This makes no sense. + this.bucketWidthY = this.bucketWidthX; // This makes no sense. // Generate pixel array from image data