From c096b29521b2bacfe185e394dcd11b87f1df4b33 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 17 Sep 2023 11:57:24 -0400 Subject: [PATCH] parameter ordering fixed. --- src/engine/InterestManagement/HeightMap.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/InterestManagement/HeightMap.java b/src/engine/InterestManagement/HeightMap.java index b5a914f5..4e152de9 100644 --- a/src/engine/InterestManagement/HeightMap.java +++ b/src/engine/InterestManagement/HeightMap.java @@ -260,7 +260,7 @@ public class HeightMap { float areaDelta = childArea / parentArea; - interpolatedTerrainHeight = FastMath.LERP(interpolatedTerrainHeight, parentHeight, areaDelta); + interpolatedTerrainHeight = FastMath.LERP(areaDelta, interpolatedTerrainHeight, parentHeight); return interpolatedTerrainHeight + heightMapZone.worldAltitude; }