simplify indent

This commit is contained in:
Glenn Maynard
2006-08-14 18:28:02 +00:00
parent 98b62bf705
commit aef53c1225
+18 -20
View File
@@ -556,27 +556,25 @@ void ScreenSelectMusic::CheckBackgroundRequests( bool bForce )
{
/* The CDTitle is normally very small, so we don't bother waiting to display it. */
RString sPath;
if( m_BackgroundLoader.IsCacheFileFinished(g_sCDTitlePath, sPath) )
{
g_bCDTitleWaiting = false;
RString sCDTitlePath = sPath;
if( sCDTitlePath.empty() || !IsAFile(sCDTitlePath) )
sCDTitlePath = g_bWantFallbackCdTitle? m_sFallbackCDTitlePath:RString("");
if( !sCDTitlePath.empty() )
{
TEXTUREMAN->DisableOddDimensionWarning();
m_sprCDTitleFront.Load( sCDTitlePath );
m_sprCDTitleBack.Load( sCDTitlePath );
TEXTUREMAN->EnableOddDimensionWarning();
}
m_BackgroundLoader.FinishedWithCachedFile( g_sCDTitlePath );
}
else
if( !m_BackgroundLoader.IsCacheFileFinished(g_sCDTitlePath, sPath) )
return;
g_bCDTitleWaiting = false;
RString sCDTitlePath = sPath;
if( sCDTitlePath.empty() || !IsAFile(sCDTitlePath) )
sCDTitlePath = g_bWantFallbackCdTitle? m_sFallbackCDTitlePath:RString("");
if( !sCDTitlePath.empty() )
{
TEXTUREMAN->DisableOddDimensionWarning();
m_sprCDTitleFront.Load( sCDTitlePath );
m_sprCDTitleBack.Load( sCDTitlePath );
TEXTUREMAN->EnableOddDimensionWarning();
}
m_BackgroundLoader.FinishedWithCachedFile( g_sCDTitlePath );
}
/* Loading the rest can cause small skips, so don't do it until the wheel settles.