fix goofy unlocks after reload songs
This commit is contained in:
@@ -94,8 +94,9 @@ void SongManager::Reload( LoadingWindow *ld )
|
|||||||
|
|
||||||
InitAll( ld );
|
InitAll( ld );
|
||||||
|
|
||||||
// reload scores afterward
|
// reload scores and unlocks afterward
|
||||||
PROFILEMAN->LoadMachineProfile();
|
PROFILEMAN->LoadMachineProfile();
|
||||||
|
UNLOCKMAN->Reload();
|
||||||
|
|
||||||
PREFSMAN->m_bFastLoad.Set( OldVal );
|
PREFSMAN->m_bFastLoad.Set( OldVal );
|
||||||
|
|
||||||
|
|||||||
@@ -511,6 +511,16 @@ void UnlockManager::Load()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void UnlockManager::Reload()
|
||||||
|
{
|
||||||
|
// clear old data, if any
|
||||||
|
m_UnlockEntries.clear();
|
||||||
|
m_RouletteCodes.clear();
|
||||||
|
|
||||||
|
Load();
|
||||||
|
}
|
||||||
|
|
||||||
float UnlockManager::PointsUntilNextUnlock( UnlockRequirement t ) const
|
float UnlockManager::PointsUntilNextUnlock( UnlockRequirement t ) const
|
||||||
{
|
{
|
||||||
float fScores[NUM_UnlockRequirement];
|
float fScores[NUM_UnlockRequirement];
|
||||||
|
|||||||
@@ -87,6 +87,7 @@ class UnlockManager
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
UnlockManager();
|
UnlockManager();
|
||||||
|
void Reload();
|
||||||
|
|
||||||
// returns # of points till next unlock - used for ScreenUnlock
|
// returns # of points till next unlock - used for ScreenUnlock
|
||||||
float PointsUntilNextUnlock( UnlockRequirement t ) const;
|
float PointsUntilNextUnlock( UnlockRequirement t ) const;
|
||||||
|
|||||||
Reference in New Issue
Block a user