fix random courses not showing up on ranking screen the first time
through due to negative cached trails from before the random list was available
This commit is contained in:
@@ -162,6 +162,10 @@ void GameState::Reset()
|
|||||||
SONGMAN->UpdateBest();
|
SONGMAN->UpdateBest();
|
||||||
SONGMAN->UpdateShuffled();
|
SONGMAN->UpdateShuffled();
|
||||||
|
|
||||||
|
/* We may have cached trails from before everything was loaded (eg. from before
|
||||||
|
* SongManager::UpdateBest could be called). Erase the cache. */
|
||||||
|
SONGMAN->RegenRandomTrailEntries();
|
||||||
|
|
||||||
g_vPlayedStageStats.clear();
|
g_vPlayedStageStats.clear();
|
||||||
|
|
||||||
FOREACH_PlayerNumber( p )
|
FOREACH_PlayerNumber( p )
|
||||||
|
|||||||
Reference in New Issue
Block a user