1
0

Merge pull request #1712 from UltraCoderRU/fix_coverity

Fixed Coverity defects.
This commit is contained in:
Mattes D 2015-01-23 18:29:01 +01:00
commit b0b0fdfd3a
6 changed files with 52 additions and 3 deletions

View File

@ -12,7 +12,8 @@ class cBlockFireHandler :
{
public:
cBlockFireHandler(BLOCKTYPE a_BlockType)
: cBlockHandler(a_BlockType)
: cBlockHandler(a_BlockType),
XZP(0), XZM(0), Dir(0)
{
}

View File

@ -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)
{
}

View File

@ -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)
{

View File

@ -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)
{

View File

@ -15,7 +15,23 @@
cLineBlockTracer::cLineBlockTracer(cWorld & a_World, cCallbacks & a_Callbacks) :
super(a_World, a_Callbacks)
super(a_World, a_Callbacks),
m_StartX(0.0),
m_StartY(0.0),
m_StartZ(0.0),
m_EndX(0.0),
m_EndY(0.0),
m_EndZ(0.0),
m_DiffX(0.0),
m_DiffY(0.0),
m_DiffZ(0.0),
m_DirX(0),
m_DirY(0),
m_DirZ(0),
m_CurrentX(0),
m_CurrentY(0),
m_CurrentZ(0),
m_CurrentFace(0)
{
}

View File

@ -271,6 +271,11 @@ cWorld::cWorld(const AString & a_WorldName, eDimension a_Dimension, const AStrin
#endif
m_Dimension(a_Dimension),
m_IsSpawnExplicitlySet(false),
m_SpawnX(0),
m_SpawnY(0),
m_SpawnZ(0),
m_BroadcastDeathMessages(true),
m_BroadcastAchievementMessages(true),
m_IsDaylightCycleEnabled(true),
m_WorldAge(0),
m_TimeOfDay(0),