From 913a2601d5279a65fce36760f2bad0663b148404 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 17 Sep 2023 14:02:17 -0400 Subject: [PATCH] Update to blend logic. --- src/engine/InterestManagement/HeightMap.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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