mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
clang: trailing else
This commit is contained in:
parent
1131ed15df
commit
d30dedd7c5
2 changed files with 4 additions and 1 deletions
|
|
@ -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())
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue