Browse Source

Magic numbers are for mental patients.

master
MagicBot 2 years ago
parent
commit
e7ceeac7b8
  1. 6
      src/engine/InterestManagement/HeightMap.java

6
src/engine/InterestManagement/HeightMap.java

@ -100,11 +100,7 @@ public class HeightMap { @@ -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

Loading…
Cancel
Save