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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user