make ScreenGameplay use a background, but blank it

This commit is contained in:
Chris Danford
2006-02-05 05:50:38 +00:00
parent 3a89d0f997
commit 3f6199b84a
4 changed files with 8 additions and 8 deletions
+2 -6
View File
@@ -526,9 +526,7 @@ void ScreenManager::PrepareScreen( const RString &sScreenName )
/* Don't delete previously prepared versions of the screen's background,
* and only prepare it if it's different than the current background
* and not already loaded. */
RString sNewBGA;
if( pNewScreen->UsesBackground() )
sNewBGA = THEME->GetPathB(sScreenName,"background");
RString sNewBGA = THEME->GetPathB(sScreenName,"background");
if( !sNewBGA.empty() && sNewBGA != g_pSharedBGA->GetName() )
{
@@ -633,9 +631,7 @@ Screen *ScreenManager::ActivatePreparedScreenAndBackground( const RString &sScre
ASSERT_M( m_sDelayedScreen.empty(), m_sDelayedScreen );
// Find the prepared shared background (if any), and activate it.
RString sNewBGA;
if( ls.m_pScreen->UsesBackground() )
sNewBGA = THEME->GetPathB(sScreenName,"background");
RString sNewBGA = THEME->GetPathB(sScreenName,"background");
if( sNewBGA != g_pSharedBGA->GetName() )
{
Actor *pNewBGA = NULL;