summaryrefslogtreecommitdiffstats
path: root/src/Generating
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-01-23 18:29:01 +0100
committerMattes D <github@xoft.cz>2015-01-23 18:29:01 +0100
commitb0b0fdfd3aa17e645fd1a378e9bf98df3fe9bb2f (patch)
treed42cfa840466f20f2ea0ae1e08abec71c878b5c1 /src/Generating
parentProtoProxy: Added socket startup error reporting. (diff)
parentFixed defect #43662 in Coverity list. (diff)
downloadcuberite-b0b0fdfd3aa17e645fd1a378e9bf98df3fe9bb2f.tar
cuberite-b0b0fdfd3aa17e645fd1a378e9bf98df3fe9bb2f.tar.gz
cuberite-b0b0fdfd3aa17e645fd1a378e9bf98df3fe9bb2f.tar.bz2
cuberite-b0b0fdfd3aa17e645fd1a378e9bf98df3fe9bb2f.tar.lz
cuberite-b0b0fdfd3aa17e645fd1a378e9bf98df3fe9bb2f.tar.xz
cuberite-b0b0fdfd3aa17e645fd1a378e9bf98df3fe9bb2f.tar.zst
cuberite-b0b0fdfd3aa17e645fd1a378e9bf98df3fe9bb2f.zip
Diffstat (limited to 'src/Generating')
-rw-r--r--src/Generating/BioGen.cpp14
-rw-r--r--src/Generating/EndGen.cpp4
-rw-r--r--src/Generating/Noise3DGenerator.cpp11
3 files changed, 28 insertions, 1 deletions
diff --git a/src/Generating/BioGen.cpp b/src/Generating/BioGen.cpp
index 2a4dbe794..2cc810d3b 100644
--- a/src/Generating/BioGen.cpp
+++ b/src/Generating/BioGen.cpp
@@ -733,7 +733,19 @@ cBioGenTwoLevel::cBioGenTwoLevel(int a_Seed) :
m_Noise3(a_Seed + 5003),
m_Noise4(a_Seed + 5004),
m_Noise5(a_Seed + 5005),
- m_Noise6(a_Seed + 5006)
+ m_Noise6(a_Seed + 5006),
+ m_FreqX1(0.0),
+ m_AmpX1(0.0),
+ m_FreqX2(0.0),
+ m_AmpX2(0.0),
+ m_FreqX3(0.0),
+ m_AmpX3(0.0),
+ m_FreqZ1(0.0),
+ m_AmpZ1(0.0),
+ m_FreqZ2(0.0),
+ m_AmpZ2(0.0),
+ m_FreqZ3(0.0),
+ m_AmpZ3(0.0)
{
}
diff --git a/src/Generating/EndGen.cpp b/src/Generating/EndGen.cpp
index bc26edb20..c559e765f 100644
--- a/src/Generating/EndGen.cpp
+++ b/src/Generating/EndGen.cpp
@@ -40,6 +40,10 @@ cEndGen::cEndGen(int a_Seed) :
m_FrequencyX(80),
m_FrequencyY(80),
m_FrequencyZ(80),
+ m_MinChunkX(0),
+ m_MaxChunkX(0),
+ m_MinChunkZ(0),
+ m_MaxChunkZ(0),
m_LastChunkX(0x7fffffff), // Use dummy coords that won't ever be used by real chunks
m_LastChunkZ(0x7fffffff)
{
diff --git a/src/Generating/Noise3DGenerator.cpp b/src/Generating/Noise3DGenerator.cpp
index 29471f936..eadc66a4e 100644
--- a/src/Generating/Noise3DGenerator.cpp
+++ b/src/Generating/Noise3DGenerator.cpp
@@ -380,6 +380,17 @@ cNoise3DComposable::cNoise3DComposable(int a_Seed) :
m_DensityNoiseA(a_Seed + 1),
m_DensityNoiseB(a_Seed + 2),
m_BaseNoise(a_Seed + 3),
+ m_HeightAmplification(0.0),
+ m_MidPoint(0.0),
+ m_FrequencyX(0.0),
+ m_FrequencyY(0.0),
+ m_FrequencyZ(0.0),
+ m_BaseFrequencyX(0.0),
+ m_BaseFrequencyZ(0.0),
+ m_ChoiceFrequencyX(0.0),
+ m_ChoiceFrequencyY(0.0),
+ m_ChoiceFrequencyZ(0.0),
+ m_AirThreshold(0.0),
m_LastChunkX(0x7fffffff), // Use dummy coords that won't ever be used by real chunks
m_LastChunkZ(0x7fffffff)
{