summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-12-01 00:14:27 +0100
committerMattes D <github@xoft.cz>2014-12-01 00:14:27 +0100
commitcc313c91ab0e62f269e30c9f525919b7b7bc61f5 (patch)
treedae0c83203ab0d4668598485b8f084102e41d054
parentNoise3D: Fixed missing initialization. (diff)
downloadcuberite-cc313c91ab0e62f269e30c9f525919b7b7bc61f5.tar
cuberite-cc313c91ab0e62f269e30c9f525919b7b7bc61f5.tar.gz
cuberite-cc313c91ab0e62f269e30c9f525919b7b7bc61f5.tar.bz2
cuberite-cc313c91ab0e62f269e30c9f525919b7b7bc61f5.tar.lz
cuberite-cc313c91ab0e62f269e30c9f525919b7b7bc61f5.tar.xz
cuberite-cc313c91ab0e62f269e30c9f525919b7b7bc61f5.tar.zst
cuberite-cc313c91ab0e62f269e30c9f525919b7b7bc61f5.zip
-rw-r--r--src/Generating/DistortedHeightmap.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Generating/DistortedHeightmap.cpp b/src/Generating/DistortedHeightmap.cpp
index e1ed9b450..37a51c18e 100644
--- a/src/Generating/DistortedHeightmap.cpp
+++ b/src/Generating/DistortedHeightmap.cpp
@@ -122,6 +122,8 @@ const cDistortedHeightmap::sGenParam cDistortedHeightmap::m_GenParam[256] =
cDistortedHeightmap::cDistortedHeightmap(int a_Seed, cBiomeGenPtr a_BiomeGen) :
m_NoiseDistortX(a_Seed + 1000),
m_NoiseDistortZ(a_Seed + 2000),
+ m_CurChunkX(0x7fffffff), // Set impossible coords for the chunk so that it's always considered stale
+ m_CurChunkZ(0x7fffffff),
m_BiomeGen(a_BiomeGen),
m_UnderlyingHeiGen(new cHeiGenBiomal(a_Seed, a_BiomeGen)),
m_HeightGen(m_UnderlyingHeiGen, 64),