|
|
@ -356,9 +356,6 @@ public class HeightMap { |
|
|
|
|
|
|
|
|
|
|
|
Vector2f gridSquare; |
|
|
|
Vector2f gridSquare; |
|
|
|
|
|
|
|
|
|
|
|
int maxX = (int) (this.fullExtentsX / this.bucketWidthX); |
|
|
|
|
|
|
|
int maxY = (int) (this.fullExtentsY / this.bucketWidthY); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gridSquare = getGridSquare(zoneLoc); |
|
|
|
gridSquare = getGridSquare(zoneLoc); |
|
|
|
|
|
|
|
|
|
|
|
int gridX = (int) gridSquare.x; |
|
|
|
int gridX = (int) gridSquare.x; |
|
|
@ -377,12 +374,6 @@ public class HeightMap { |
|
|
|
int nextY = gridY + 1; |
|
|
|
int nextY = gridY + 1; |
|
|
|
int nextX = gridX + 1; |
|
|
|
int nextX = gridX + 1; |
|
|
|
|
|
|
|
|
|
|
|
if (nextY > maxY) |
|
|
|
|
|
|
|
nextY = gridY; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (nextX > maxX) |
|
|
|
|
|
|
|
nextX = gridX; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
topLeftHeight = pixelColorValues[gridX][gridY]; |
|
|
|
topLeftHeight = pixelColorValues[gridX][gridY]; |
|
|
|
topRightHeight = pixelColorValues[nextX][gridY]; |
|
|
|
topRightHeight = pixelColorValues[nextX][gridY]; |
|
|
|
bottomLeftHeight = pixelColorValues[gridX][nextY]; |
|
|
|
bottomLeftHeight = pixelColorValues[gridX][nextY]; |
|
|
|