Reordering initialization methods #1912

This commit is contained in:
Masquara 2017-04-11 00:45:02 -04:00
parent e724b2fcdd
commit 970dd5c477
70 changed files with 207 additions and 205 deletions

View file

@ -159,8 +159,8 @@ ConsoleDocClass( ForestSelectionTool,
ForestSelectionTool::ForestSelectionTool()
: Parent(),
mCurrAction( NULL ),
mGizmo( NULL ),
mCurrAction( NULL ),
mGizmoProfile( NULL )
{
mBounds = Box3F::Invalid;

View file

@ -81,8 +81,8 @@ ConsoleDocClass( Forest,
Forest::Forest()
: mDataFileName( NULL ),
mReflectionLodScalar( 2.0f ),
mConvexList( new Convex() ),
mReflectionLodScalar( 2.0f ),
mZoningDirty( false )
{
mTypeMask |= EnvironmentObjectType | StaticShapeObjectType | StaticObjectType;

View file

@ -38,8 +38,8 @@
ForestCell::ForestCell( const RectF &rect ) :
mRect( rect ),
mBounds( Box3F::Invalid ),
mLargestItem( ForestItem::Invalid ),
mIsDirty( false ),
mLargestItem( ForestItem::Invalid ),
mIsInteriorOnly( false )
{
dMemset( mSubCells, 0, sizeof( mSubCells ) );

View file

@ -42,8 +42,8 @@ SimSet* ForestItemData::smSet = NULL;
ForestItemData::ForestItemData()
: mNeedPreload( true ),
mShapeFile( NULL ),
mRadius( 1 ),
mCollidable( true ),
mRadius( 1 ),
mWindScale( 0.0f ),
mTrunkBendScale( 0.0f ),
mWindBranchAmp( 0.0f ),
@ -215,9 +215,9 @@ ForestItem::ForestItem()
: mDataBlock( NULL ),
mTransform( true ),
mScale( 0.0f ),
mWorldBox( 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f ),
mKey( 0 ),
mRadius( 0.0f ),
mKey( 0 )
mWorldBox( 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f )
{
}

View file

@ -84,12 +84,12 @@ ForestWind::ForestWind( ForestWindEmitter *emitter )
mDirection( 1.0f, 0, 0 ),
mLastGustTime( 0 ),
mLastYawTime( 0 ),
mCurrentTarget( 0, 0 ),
mCurrentInterp( 0 ),
mTargetYawAngle( 0 ),
mCurrentInterp( 0 ),
mCurrentTarget( 0, 0 ),
mParent( emitter ),
mIsDirty( false ),
mRandom( Platform::getRealMilliseconds() + 1 )
mRandom( Platform::getRealMilliseconds() + 1 ),
mIsDirty( false )
{
}
@ -204,8 +204,9 @@ void ForestWind::setDirection( const VectorF &direction )
IMPLEMENT_CO_NETOBJECT_V1(ForestWindEmitter);
ForestWindEmitter::ForestWindEmitter( bool makeClientObject )
: mEnabled( true ),
mAddedToScene( false ),
:
mAddedToScene( false ),
mEnabled( true ),
mWind( NULL ),
mWindStrength( 1 ),
mWindDirection( 1, 0, 0 ),

View file

@ -42,8 +42,8 @@ ConsoleDocClass( TSForestItemData,
);
TSForestItemData::TSForestItemData()
: mShapeInstance( NULL ),
mIsClientObject( false )
: mIsClientObject( false ),
mShapeInstance( NULL )
{
}