summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-12-01 00:08:44 +0100
committerMattes D <github@xoft.cz>2014-12-01 00:09:58 +0100
commitf0ad6221c3a409e7cc9cde631c50bc026486b4ae (patch)
treeb3b812f29cf09fd78edc373973ab5d15812d7ea8 /src
parentHopefully fixed random build fails (diff)
downloadcuberite-f0ad6221c3a409e7cc9cde631c50bc026486b4ae.tar
cuberite-f0ad6221c3a409e7cc9cde631c50bc026486b4ae.tar.gz
cuberite-f0ad6221c3a409e7cc9cde631c50bc026486b4ae.tar.bz2
cuberite-f0ad6221c3a409e7cc9cde631c50bc026486b4ae.tar.lz
cuberite-f0ad6221c3a409e7cc9cde631c50bc026486b4ae.tar.xz
cuberite-f0ad6221c3a409e7cc9cde631c50bc026486b4ae.tar.zst
cuberite-f0ad6221c3a409e7cc9cde631c50bc026486b4ae.zip
Diffstat (limited to 'src')
-rw-r--r--src/Generating/Noise3DGenerator.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Generating/Noise3DGenerator.cpp b/src/Generating/Noise3DGenerator.cpp
index a7af87bac..57e23809e 100644
--- a/src/Generating/Noise3DGenerator.cpp
+++ b/src/Generating/Noise3DGenerator.cpp
@@ -529,7 +529,9 @@ cBiomalNoise3DComposable::cBiomalNoise3DComposable(int a_Seed, cBiomeGenPtr a_Bi
m_DensityNoiseA(a_Seed + 1),
m_DensityNoiseB(a_Seed + 2),
m_BaseNoise(a_Seed + 3),
- m_BiomeGen(a_BiomeGen)
+ m_BiomeGen(a_BiomeGen),
+ m_LastChunkX(0x7fffffff), // Set impossible coords for the chunk so that it's always considered stale
+ m_LastChunkZ(0x7fffffff)
{
// Generate the weight distribution for summing up neighboring biomes:
m_WeightSum = 0;