summaryrefslogtreecommitdiffstats
path: root/src/Generating/DistortedHeightmap.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-06-11 14:14:54 +0200
committermadmaxoft <github@xoft.cz>2014-06-11 14:15:18 +0200
commit7e4abcfe2d2b1b5d5f73ebb990b24427323624e8 (patch)
tree62abbdebfa160784e9f41a7bc423602b4dcaa743 /src/Generating/DistortedHeightmap.cpp
parentAdded coverity badge (diff)
downloadcuberite-7e4abcfe2d2b1b5d5f73ebb990b24427323624e8.tar
cuberite-7e4abcfe2d2b1b5d5f73ebb990b24427323624e8.tar.gz
cuberite-7e4abcfe2d2b1b5d5f73ebb990b24427323624e8.tar.bz2
cuberite-7e4abcfe2d2b1b5d5f73ebb990b24427323624e8.tar.lz
cuberite-7e4abcfe2d2b1b5d5f73ebb990b24427323624e8.tar.xz
cuberite-7e4abcfe2d2b1b5d5f73ebb990b24427323624e8.tar.zst
cuberite-7e4abcfe2d2b1b5d5f73ebb990b24427323624e8.zip
Diffstat (limited to '')
-rw-r--r--src/Generating/DistortedHeightmap.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Generating/DistortedHeightmap.cpp b/src/Generating/DistortedHeightmap.cpp
index e50f36d57..eb9fe92ba 100644
--- a/src/Generating/DistortedHeightmap.cpp
+++ b/src/Generating/DistortedHeightmap.cpp
@@ -282,7 +282,7 @@ cDistortedHeightmap::cDistortedHeightmap(int a_Seed, cBiomeGen & a_BiomeGen) :
m_OceanFloorSelect(a_Seed + 3000),
m_MesaFloor(a_Seed + 4000),
m_BiomeGen(a_BiomeGen),
- m_UnderlyingHeiGen(a_Seed),
+ m_UnderlyingHeiGen(a_Seed, a_BiomeGen),
m_HeightGen(m_UnderlyingHeiGen, 64),
m_IsInitialized(false)
{
@@ -308,8 +308,6 @@ void cDistortedHeightmap::Initialize(cIniFile & a_IniFile)
return;
}
- ((cTerrainHeightGen &)m_UnderlyingHeiGen).InitializeHeightGen(a_IniFile);
-
// Read the params from the INI file:
m_SeaLevel = a_IniFile.GetValueSetI("Generator", "DistortedHeightmapSeaLevel", 62);
m_FrequencyX = (NOISE_DATATYPE)a_IniFile.GetValueSetF("Generator", "DistortedHeightmapFrequencyX", 10);