From d30dedd7c56e024eb595270b2c66da8559cf2613 Mon Sep 17 00:00:00 2001 From: Azaezel Date: Fri, 14 Oct 2016 17:57:20 -0500 Subject: [PATCH] clang: trailing else --- Engine/source/T3D/fps/guiHealthBarHud.cpp | 3 ++- Engine/source/sfx/sfxController.cpp | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Engine/source/T3D/fps/guiHealthBarHud.cpp b/Engine/source/T3D/fps/guiHealthBarHud.cpp index c50712aa0..a402e23d1 100644 --- a/Engine/source/T3D/fps/guiHealthBarHud.cpp +++ b/Engine/source/T3D/fps/guiHealthBarHud.cpp @@ -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()) diff --git a/Engine/source/sfx/sfxController.cpp b/Engine/source/sfx/sfxController.cpp index bb35bcd8d..76a5c1d45 100644 --- a/Engine/source/sfx/sfxController.cpp +++ b/Engine/source/sfx/sfxController.cpp @@ -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; } + } } //-----------------------------------------------------------------------------