fix goofy unlocks after reload songs

This commit is contained in:
Chris Danford
2006-05-02 22:02:18 +00:00
parent 2ec5e3b9ca
commit 9fb36069f8
3 changed files with 13 additions and 1 deletions
+2 -1
View File
@@ -94,8 +94,9 @@ void SongManager::Reload( LoadingWindow *ld )
InitAll( ld );
// reload scores afterward
// reload scores and unlocks afterward
PROFILEMAN->LoadMachineProfile();
UNLOCKMAN->Reload();
PREFSMAN->m_bFastLoad.Set( OldVal );
+10
View File
@@ -511,6 +511,16 @@ void UnlockManager::Load()
return;
}
void UnlockManager::Reload()
{
// clear old data, if any
m_UnlockEntries.clear();
m_RouletteCodes.clear();
Load();
}
float UnlockManager::PointsUntilNextUnlock( UnlockRequirement t ) const
{
float fScores[NUM_UnlockRequirement];
+1
View File
@@ -87,6 +87,7 @@ class UnlockManager
public:
UnlockManager();
void Reload();
// returns # of points till next unlock - used for ScreenUnlock
float PointsUntilNextUnlock( UnlockRequirement t ) const;