mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 08:15:44 +00:00
uninitialized variables-t3d
This commit is contained in:
parent
87603029db
commit
fabd5864fa
27 changed files with 102 additions and 23 deletions
|
|
@ -322,6 +322,7 @@ ConsoleDocClass( FlyingVehicle,
|
|||
|
||||
FlyingVehicle::FlyingVehicle()
|
||||
{
|
||||
mDataBlock = NULL;
|
||||
mSteering.set(0,0);
|
||||
mThrottle = 0;
|
||||
mJetting = false;
|
||||
|
|
@ -332,6 +333,10 @@ FlyingVehicle::FlyingVehicle()
|
|||
mBackMaintainOn = false;
|
||||
mBottomMaintainOn = false;
|
||||
createHeightOn = false;
|
||||
mCeilingFactor = 1.0f;
|
||||
mThrustDirection = FlyingVehicle::ThrustForward;
|
||||
for (U32 i=0;i< JetAnimCount;i++)
|
||||
mJetSeq[i] = -1;
|
||||
|
||||
for (S32 i = 0; i < JetAnimCount; i++)
|
||||
mJetThread[i] = 0;
|
||||
|
|
|
|||
|
|
@ -77,7 +77,6 @@ struct FlyingVehicleData: public VehicleData {
|
|||
|
||||
// Initialized in preload
|
||||
ClippedPolyList rigidBody;
|
||||
S32 surfaceCount;
|
||||
F32 maxSpeed;
|
||||
|
||||
enum JetNodes {
|
||||
|
|
|
|||
|
|
@ -139,6 +139,7 @@ HoverVehicleData::HoverVehicleData()
|
|||
dustTrailID = 0;
|
||||
dustTrailOffset.set( 0.0f, 0.0f, 0.0f );
|
||||
dustTrailFreqMod = 15.0f;
|
||||
maxThrustSpeed = 0;
|
||||
triggerTrailHeight = 2.5f;
|
||||
|
||||
floatingGravMag = 1;
|
||||
|
|
@ -436,24 +437,29 @@ void HoverVehicleData::unpackData(BitStream* stream)
|
|||
//
|
||||
HoverVehicle::HoverVehicle()
|
||||
{
|
||||
mDataBlock = NULL;
|
||||
// Todo: ScopeAlways?
|
||||
mNetFlags.set(Ghostable);
|
||||
|
||||
mFloating = false;
|
||||
mForwardThrust = 0;
|
||||
mReverseThrust = 0;
|
||||
mLeftThrust = 0;
|
||||
mRightThrust = 0;
|
||||
mThrustLevel = 0.0f;
|
||||
mForwardThrust = 0.0f;
|
||||
mReverseThrust = 0.0f;
|
||||
mLeftThrust = 0.0f;
|
||||
mRightThrust = 0.0f;
|
||||
|
||||
mJetSound = NULL;
|
||||
mEngineSound = NULL;
|
||||
mFloatSound = NULL;
|
||||
|
||||
mThrustDirection = HoverVehicle::ThrustForward;
|
||||
mDustTrailEmitter = NULL;
|
||||
|
||||
mBackMaintainOn = false;
|
||||
for (S32 i = 0; i < JetAnimCount; i++)
|
||||
mJetThread[i] = 0;
|
||||
{
|
||||
mJetSeq[i] = -1;
|
||||
mJetThread[i] = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
HoverVehicle::~HoverVehicle()
|
||||
|
|
|
|||
|
|
@ -304,7 +304,7 @@ WheeledVehicleData::WheeledVehicleData()
|
|||
brakeLightSequence = -1;
|
||||
steeringSequence = -1;
|
||||
wheelCount = 0;
|
||||
|
||||
dMemset(&wheel, 0, sizeof(wheel));
|
||||
for (S32 i = 0; i < MaxSounds; i++)
|
||||
sound[i] = 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue