Keep track of number of songs played. The other stats all count per-

player: if one person plays on Hard and one on Easy, then each will
be incremented.  That's useful, but it's also helpful to track the simple
number of songs played, irrespective of how many people were playing
at the time.
This commit is contained in:
Glenn Maynard
2005-02-23 22:52:03 +00:00
parent 9ff32c8d25
commit c6de356dca
3 changed files with 13 additions and 3 deletions
+4 -3
View File
@@ -142,6 +142,7 @@ void StatsManager::CommitStatsToProfiles()
pMachineProfile->m_iTotalGameplaySeconds += iGameplaySeconds;
pMachineProfile->m_iCurrentCombo = 0;
pMachineProfile->m_iNumSingleSongsPlayed += m_CurStageStats.vpSongs.size();
CHECKPOINT;
FOREACH_HumanPlayer( pn )
@@ -156,13 +157,13 @@ void StatsManager::CommitStatsToProfiles()
PREFSMAN->m_bComboContinuesBetweenSongs ?
m_CurStageStats.m_player[pn].iCurCombo :
0;
pPlayerProfile->m_iNumSingleSongsPlayed += m_CurStageStats.vpSongs.size();
}
const StageStats& ss = m_CurStageStats;
AddPlayerStatsToProfile( pMachineProfile, ss, pn );
AddPlayerStatsToProfile( pMachineProfile, m_CurStageStats, pn );
if( pPlayerProfile )
AddPlayerStatsToProfile( pPlayerProfile, ss, pn );
AddPlayerStatsToProfile( pPlayerProfile, m_CurStageStats, pn );
CHECKPOINT;
}