Skip to content

Commit

Permalink
Readded some missed brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
Areloch committed Jun 20, 2016
1 parent e9039b2 commit 69244a8
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions Engine/source/T3D/tsStatic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -764,20 +764,21 @@ U32 TSStatic::packUpdate(NetConnection *con, U32 mask, BitStream *stream)
if ( stream->writeFlag( mask & SkinMask ) )
con->packNetStringHandleU( stream, mSkinNameHandle );

if ( stream->writeFlag( mask & AdvancedStaticOptionsMask ) )
if (stream->writeFlag(mask & AdvancedStaticOptionsMask))
{
stream->writeString( mShapeName );
stream->write( (U32)mDecalType );
stream->writeString(mShapeName);
stream->write((U32)mDecalType);

stream->writeFlag( mAllowPlayerStep );
stream->writeFlag( mMeshCulling );
stream->writeFlag( mUseOriginSort );
stream->writeFlag(mAllowPlayerStep);
stream->writeFlag(mMeshCulling);
stream->writeFlag(mUseOriginSort);

stream->write( mRenderNormalScalar );
stream->write(mRenderNormalScalar);

stream->write( mForceDetail );
stream->write(mForceDetail);

stream->writeFlag( mPlayAmbient );
stream->writeFlag(mPlayAmbient);
}

if ( stream->writeFlag(mUseAlphaFade) )
{
Expand Down Expand Up @@ -846,19 +847,20 @@ void TSStatic::unpackUpdate(NetConnection *con, BitStream *stream)
}
}

if ( stream->readFlag() ) // AdvancedStaticOptionsMask
if (stream->readFlag()) // AdvancedStaticOptionsMask
{
mShapeName = stream->readSTString();

stream->read( (U32*)&mDecalType );
stream->read((U32*)&mDecalType);

mAllowPlayerStep = stream->readFlag();
mMeshCulling = stream->readFlag();
mMeshCulling = stream->readFlag();
mUseOriginSort = stream->readFlag();

stream->read( &mRenderNormalScalar );
stream->read(&mRenderNormalScalar);

stream->read( &mForceDetail );
stream->read(&mForceDetail);
}

mUseAlphaFade = stream->readFlag();
if (mUseAlphaFade)
Expand Down

0 comments on commit 69244a8

Please sign in to comment.