fix PlaySharedBackgroundOffCommand called when it shouldn't be

This commit is contained in:
Glenn Maynard
2006-02-24 03:02:00 +00:00
parent d42559a5cd
commit f4b57aa968
+4 -2
View File
@@ -266,8 +266,10 @@ void ScreenWithMenuElements::TweenOffScreen()
OFF_COMMAND( m_sprUnderlay ); OFF_COMMAND( m_sprUnderlay );
OFF_COMMAND( m_sprOverlay ); OFF_COMMAND( m_sprOverlay );
SCREENMAN->PlaySharedBackgroundOffCommand(); // If we're a stacked screen, then there's someone else between us and the
// background, so don't tween it off.
if( !SCREENMAN->IsStackedScreen(this) )
SCREENMAN->PlaySharedBackgroundOffCommand();
} }
void ScreenWithMenuElements::Cancel( ScreenMessage smSendWhenDone ) void ScreenWithMenuElements::Cancel( ScreenMessage smSendWhenDone )