separate SongManager::Cleanup and SongManager::FlushCaches

Cleanup() is called every screen, to remove large decompressed step
data, but that shouldn't clear trail caches as well;
SongManager::FlushCaches also clears the StepsID cache
This commit is contained in:
Glenn Maynard
2004-06-11 21:31:34 +00:00
parent 0a455d1a64
commit a17b1ead51
3 changed files with 9 additions and 15 deletions
+1 -1
View File
@@ -152,7 +152,7 @@ void GameState::Reset()
/* We may have cached trails from before everything was loaded (eg. from before
* SongManager::UpdateBest could be called). Erase the cache. */
SONGMAN->RegenRandomTrailEntries();
SONGMAN->FlushCaches();
g_vPlayedStageStats.clear();