fix goofy unlocks after reload songs
This commit is contained in:
@@ -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 );
|
||||
|
||||
|
||||
@@ -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];
|
||||
|
||||
@@ -87,6 +87,7 @@ class UnlockManager
|
||||
|
||||
public:
|
||||
UnlockManager();
|
||||
void Reload();
|
||||
|
||||
// returns # of points till next unlock - used for ScreenUnlock
|
||||
float PointsUntilNextUnlock( UnlockRequirement t ) const;
|
||||
|
||||
Reference in New Issue
Block a user