summaryrefslogtreecommitdiffstats
path: root/source/Generating/DistortedHeightmap.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-05-12 19:55:49 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-05-12 19:55:49 +0200
commit1927095d25614bcec73f93e74424110d3feefc7f (patch)
treef24bafbd79baf304f3ff7633f25be64b06cf5f21 /source/Generating/DistortedHeightmap.cpp
parentcWorld: Temporary fix for FS #338 (diff)
downloadcuberite-1927095d25614bcec73f93e74424110d3feefc7f.tar
cuberite-1927095d25614bcec73f93e74424110d3feefc7f.tar.gz
cuberite-1927095d25614bcec73f93e74424110d3feefc7f.tar.bz2
cuberite-1927095d25614bcec73f93e74424110d3feefc7f.tar.lz
cuberite-1927095d25614bcec73f93e74424110d3feefc7f.tar.xz
cuberite-1927095d25614bcec73f93e74424110d3feefc7f.tar.zst
cuberite-1927095d25614bcec73f93e74424110d3feefc7f.zip
Diffstat (limited to '')
-rw-r--r--source/Generating/DistortedHeightmap.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/Generating/DistortedHeightmap.cpp b/source/Generating/DistortedHeightmap.cpp
index 2ffaab089..d44ef60e5 100644
--- a/source/Generating/DistortedHeightmap.cpp
+++ b/source/Generating/DistortedHeightmap.cpp
@@ -8,6 +8,7 @@
#include "DistortedHeightmap.h"
#include "../OSSupport/File.h"
#include "../../iniFile/iniFile.h"
+#include "../LinearUpscale.h"
@@ -157,7 +158,7 @@ void cDistortedHeightmap::GenerateHeightArray(void)
CurFloor[idx + x * INTERPOL_X] = (NOISE_DATATYPE)GetHeightmapAt(DistX, DistZ) + (NOISE_DATATYPE)0.5;
} // for x
} // for z
- ArrayLinearInterpolate2D(CurFloor, 17, 17, INTERPOL_X, INTERPOL_Z);
+ ArrayLinearUpscale2D(CurFloor, 17, 17, INTERPOL_X, INTERPOL_Z);
} // for y
// Finish the 3D linear interpolation by interpolating between each XZ-floors on the Y axis
@@ -344,8 +345,8 @@ void cDistortedHeightmap::UpdateDistortAmps(void)
GetDistortAmpsAt(Biomes, x, z, m_DistortAmpX[x + 17 * z], m_DistortAmpZ[x + 17 * z]);
}
}
- ArrayLinearInterpolate2D(m_DistortAmpX, 17, 17, STEPX, STEPZ);
- ArrayLinearInterpolate2D(m_DistortAmpZ, 17, 17, STEPX, STEPZ);
+ ArrayLinearUpscale2D(m_DistortAmpX, 17, 17, STEPX, STEPZ);
+ ArrayLinearUpscale2D(m_DistortAmpZ, 17, 17, STEPX, STEPZ);
}