clang: trailing else

This commit is contained in:
Azaezel 2016-10-14 17:57:20 -05:00
parent 1131ed15df
commit d30dedd7c5
2 changed files with 4 additions and 1 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
if (mPulseRate != 0)
{
if (mValue < mPulseThreshold)
{
U32 time = Platform::getVirtualMilliseconds();
@ -171,7 +172,7 @@ void GuiHealthBarHud::onRender(Point2I offset, const RectI &updateRect)
}
else
mDamageFillColor.alpha = 1;
}
// Render damage fill %
RectI rect(updateRect);
if(getWidth() > getHeight())

View file

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