uninitialized variables-afx

This commit is contained in:
AzaezelX 2020-05-11 13:54:23 -05:00
parent 157b114ec7
commit 3c0360fd2f
22 changed files with 88 additions and 25 deletions

View file

@ -105,6 +105,11 @@ afxModelData::afxModelData(const afxModelData& other, bool temp_clone) : GameBas
customAmbientForSelfIllumination = other.customAmbientForSelfIllumination;
customAmbientLighting = other.customAmbientLighting;
shadowEnable = other.shadowEnable;
shadowSize = other.shadowSize;
shadowMaxVisibleDistance = other.shadowMaxVisibleDistance;
shadowProjectionDistance = other.shadowProjectionDistance;
shadowSphereAdjust = other.shadowSphereAdjust;
}
afxModelData::~afxModelData()
@ -360,7 +365,7 @@ afxModel::afxModel()
fade_amt = 1.0f;
is_visible = true;
sort_priority = 0;
mDataBlock = NULL;
mNetFlags.set( IsGhost );
}

View file

@ -133,6 +133,7 @@ afxMooring::afxMooring()
chor_id = 0;
hookup_with_chor = false;
ghost_cons_name = ST_NULLSTRING;
mDataBlock = NULL;
}
afxMooring::afxMooring(U32 networking, U32 chor_id, StringTableEntry cons_name)
@ -160,6 +161,7 @@ afxMooring::afxMooring(U32 networking, U32 chor_id, StringTableEntry cons_name)
this->chor_id = chor_id;
hookup_with_chor = false;
this->ghost_cons_name = cons_name;
mDataBlock = NULL;
}
afxMooring::~afxMooring()
@ -275,4 +277,4 @@ void afxMooring::onRemove()
Parent::onRemove();
}
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//

View file

@ -687,6 +687,7 @@ bool afxParticleEmitterDiscData::preload(bool server, String &errorStr)
afxParticleEmitter::afxParticleEmitter()
{
mDataBlock = NULL;
pe_vector.set(0,0,1);
pe_vector_norm.set(0,0,1);
tpaths.clear();
@ -1086,6 +1087,7 @@ void afxParticleEmitter::emitParticlesExt(const MatrixF& xfm, const Point3F& poi
afxParticleEmitterVector::afxParticleEmitterVector()
{
mDataBlock = NULL;
}
afxParticleEmitterVector::~afxParticleEmitterVector()
@ -1151,6 +1153,7 @@ void afxParticleEmitterVector::sub_preCompute(const MatrixF& mat)
afxParticleEmitterCone::afxParticleEmitterCone()
{
mDataBlock = NULL;
cone_v.set(0,0,1);
cone_s0.set(0,0,1);
cone_s1.set(0,0,1);
@ -1266,6 +1269,7 @@ void afxParticleEmitterCone::sub_preCompute(const MatrixF& mat)
afxParticleEmitterPath::afxParticleEmitterPath()
{
mDataBlock = NULL;
epaths.clear();
epath_mults.clear();
n_epath_points = 0;
@ -1521,6 +1525,7 @@ void afxParticleEmitterPath::groundConformPoint(Point3F& point, const MatrixF& m
afxParticleEmitterDisc::afxParticleEmitterDisc()
{
mDataBlock = NULL;
disc_v.set(0,0,1);
disc_r.set(1,0,0);
}

View file

@ -122,6 +122,7 @@ ConsoleDocClass( afxStaticShape,
afxStaticShape::afxStaticShape()
{
mDataBlock = NULL;
mAFX_data = 0;
mIs_visible = true;
mChor_id = 0;
@ -238,4 +239,4 @@ void afxStaticShape::prepRenderImage(SceneRenderState* state)
Parent::prepRenderImage(state);
}
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//

View file

@ -114,6 +114,7 @@ afxZodiacData::afxZodiacData()
grade_range_user.set(0.0f, 45.0f);
afxZodiacData::convertGradientRangeFromDegrees(grade_range, grade_range_user);
inv_grade_range = false;
zflags = 0;
}
afxZodiacData::afxZodiacData(const afxZodiacData& other, bool temp_clone) : GameBaseData(other, temp_clone)

View file

@ -61,7 +61,7 @@ afxZodiacPlaneData::afxZodiacPlaneData()
color.set(1,1,1,1);
blend_flags = BLEND_NORMAL;
respect_ori_cons = false;
zflags = 0;
double_sided = true;
face_dir = FACES_UP;
use_full_xfm = false;
@ -310,4 +310,4 @@ void afxZodiacPlane::onRemove()
Parent::onRemove();
}
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//