Magic numbers are for mental patients.
This commit is contained in:
@@ -100,11 +100,7 @@ public class HeightMap {
|
|||||||
float numOfBuckets = this.heightmapImage.getWidth() - 1;
|
float numOfBuckets = this.heightmapImage.getWidth() - 1;
|
||||||
float calculatedWidth = this.fullExtentsX / numOfBuckets;
|
float calculatedWidth = this.fullExtentsX / numOfBuckets;
|
||||||
this.bucketWidthX = calculatedWidth;
|
this.bucketWidthX = calculatedWidth;
|
||||||
|
this.bucketWidthY = this.bucketWidthX; // This makes no sense.
|
||||||
numOfBuckets = this.heightmapImage.getHeight() - 1;
|
|
||||||
calculatedWidth = this.fullExtentsY / numOfBuckets;
|
|
||||||
|
|
||||||
this.bucketWidthY = calculatedWidth; // This makes no sense.
|
|
||||||
|
|
||||||
// Generate pixel array from image data
|
// Generate pixel array from image data
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user