Don't reset HandleSongTimer here; we might still be in the middle of the previous screen. Do this in SM_LoseFocus.

This commit is contained in:
Glenn Maynard
2005-07-19 22:58:31 +00:00
parent 635b6e805a
commit dcc3e1e588
-5
View File
@@ -318,11 +318,6 @@ Screen* ScreenManager::MakeNewScreenInternal( const CString &sScreenName )
Screen* ScreenManager::MakeNewScreen( const CString &sScreenName )
{
/* By default, RageSounds handles the song timer. When we change screens, reset this;
* screens turn this off in SM_GainFocus if they handle timers themselves (edit).
* XXX: screens should turn this on in SM_LoseFocus if they handle timers themselves, too */
SOUND->HandleSongTimer( true );
/* Cleanup song data. This can free up a fair bit of memory, so do it before
* creating the new screen, to lower peak memory usage slightly. */
SONGMAN->Cleanup();