Browse Source

parameter ordering fixed.

magicbox-1.5.2
MagicBot 1 year ago
parent
commit
c096b29521
  1. 2
      src/engine/InterestManagement/HeightMap.java

2
src/engine/InterestManagement/HeightMap.java

@ -260,7 +260,7 @@ public class HeightMap {
float areaDelta = childArea / parentArea; float areaDelta = childArea / parentArea;
interpolatedTerrainHeight = FastMath.LERP(interpolatedTerrainHeight, parentHeight, areaDelta); interpolatedTerrainHeight = FastMath.LERP(areaDelta, interpolatedTerrainHeight, parentHeight);
return interpolatedTerrainHeight + heightMapZone.worldAltitude; return interpolatedTerrainHeight + heightMapZone.worldAltitude;
} }

Loading…
Cancel
Save