Store unlock data in a more fundamental form in the profile, and derive
the special values as needed. Centralize most of it in GameState::EndGame.
This commit is contained in:
@@ -426,6 +426,15 @@ const Profile* ProfileManager::GetProfile( ProfileSlot slot ) const
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// General
|
||||
//
|
||||
void ProfileManager::IncrementToastiesCount( PlayerNumber pn )
|
||||
{
|
||||
if( PROFILEMAN->IsUsingProfile(pn) )
|
||||
++PROFILEMAN->GetProfile(pn)->m_iNumToasties;
|
||||
++PROFILEMAN->GetMachineProfile()->m_iNumToasties;
|
||||
}
|
||||
|
||||
//
|
||||
// Song stats
|
||||
|
||||
Reference in New Issue
Block a user