Merge pull request #1803 from Azaezel/chasingElsey

clang: trailing else
This commit is contained in:
Areloch 2016-10-21 01:42:14 -05:00 committed by GitHub
commit 33f4ead242
3 changed files with 9 additions and 3 deletions

View file

@ -163,6 +163,7 @@ void GuiHealthBarHud::onRender(Point2I offset, const RectI &updateRect)
// Pulse the damage fill if it's below the threshold // Pulse the damage fill if it's below the threshold
if (mPulseRate != 0) if (mPulseRate != 0)
{
if (mValue < mPulseThreshold) if (mValue < mPulseThreshold)
{ {
U32 time = Platform::getVirtualMilliseconds(); U32 time = Platform::getVirtualMilliseconds();
@ -171,7 +172,7 @@ void GuiHealthBarHud::onRender(Point2I offset, const RectI &updateRect)
} }
else else
mDamageFillColor.alpha = 1; mDamageFillColor.alpha = 1;
}
// Render damage fill % // Render damage fill %
RectI rect(updateRect); RectI rect(updateRect);
if(getWidth() > getHeight()) if(getWidth() > getHeight())

View file

@ -3835,11 +3835,13 @@ void Player::updateActionThread()
// Select an action animation sequence, this assumes that // Select an action animation sequence, this assumes that
// this function is called once per tick. // this function is called once per tick.
if(mActionAnimation.action != PlayerData::NullAnimation) if(mActionAnimation.action != PlayerData::NullAnimation)
{
if (mActionAnimation.forward) if (mActionAnimation.forward)
mActionAnimation.atEnd = mShapeInstance->getPos(mActionAnimation.thread) == 1; mActionAnimation.atEnd = mShapeInstance->getPos(mActionAnimation.thread) == 1;
else else
mActionAnimation.atEnd = mShapeInstance->getPos(mActionAnimation.thread) == 0; mActionAnimation.atEnd = mShapeInstance->getPos(mActionAnimation.thread) == 0;
}
// Only need to deal with triggers on the client // Only need to deal with triggers on the client
if( isGhost() ) if( isGhost() )
{ {
@ -4581,6 +4583,7 @@ void Player::updateAnimationTree(bool firstPerson)
{ {
S32 mode = 0; S32 mode = 0;
if (firstPerson) if (firstPerson)
{
if (mActionAnimation.firstPerson) if (mActionAnimation.firstPerson)
mode = 0; mode = 0;
// TSShapeInstance::MaskNodeRotation; // TSShapeInstance::MaskNodeRotation;
@ -4588,7 +4591,7 @@ void Player::updateAnimationTree(bool firstPerson)
// TSShapeInstance::MaskNodePosY; // TSShapeInstance::MaskNodePosY;
else else
mode = TSShapeInstance::MaskNodeAllButBlend; mode = TSShapeInstance::MaskNodeAllButBlend;
}
for (U32 i = 0; i < PlayerData::NumSpineNodes; i++) for (U32 i = 0; i < PlayerData::NumSpineNodes; i++)
if (mDataBlock->spineNode[i] != -1) if (mDataBlock->spineNode[i] != -1)
mShapeInstance->setNodeAnimationState(mDataBlock->spineNode[i],mode); mShapeInstance->setNodeAnimationState(mDataBlock->spineNode[i],mode);

View file

@ -689,6 +689,7 @@ void SFXController::_play()
// Unpause sources, if we are paused. // Unpause sources, if we are paused.
if( mStatus == SFXStatusPaused ) if( mStatus == SFXStatusPaused )
{
for( U32 i = 0; i < mSources.size(); ++ i ) for( U32 i = 0; i < mSources.size(); ++ i )
if( mSources[ i ].mPtr != NULL ) if( mSources[ i ].mPtr != NULL )
mSources[ i ].mPtr->play( 0.f ); // We want our fade values to take effect. mSources[ i ].mPtr->play( 0.f ); // We want our fade values to take effect.
@ -697,6 +698,7 @@ void SFXController::_play()
mSources.erase( i ); mSources.erase( i );
-- i; -- i;
} }
}
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------