diff --git a/src/engine/InterestManagement/HeightMap.java b/src/engine/InterestManagement/HeightMap.java index 4e3afbd7..63f629d6 100644 --- a/src/engine/InterestManagement/HeightMap.java +++ b/src/engine/InterestManagement/HeightMap.java @@ -229,12 +229,11 @@ public class HeightMap { // Interpolate height for this position using pixel array. float interpolatedTerrainHeight = heightMapZone.getHeightMap().getInterpolatedTerrainHeight(zoneLoc); - worldHeight = interpolatedTerrainHeight + heightMapZone.worldAltitude; // Heightmap blending is based on distance to edge of zone. if (Bounds.collide(worldLoc, heightMapZone.maxBlend) == true) - return worldHeight; + return interpolatedTerrainHeight + heightMapZone.worldAltitude; // We will need the parent height if we got this far into the method