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:
@@ -102,6 +102,7 @@ void Profile::InitGeneralData()
|
||||
m_iNumSongsPlayedByDifficulty[i] = 0;
|
||||
for( int i=0; i<MAX_METER+1; i++ )
|
||||
m_iNumSongsPlayedByMeter[i] = 0;
|
||||
m_iNumSingleSongsPlayed = 0;
|
||||
ZERO( m_iNumStagesPassedByPlayMode );
|
||||
ZERO( m_iNumStagesPassedByGrade );
|
||||
|
||||
@@ -885,6 +886,8 @@ XNode* Profile::SaveGeneralDataCreateNode() const
|
||||
}
|
||||
}
|
||||
|
||||
pGeneralDataNode->AppendChild( "NumSingleSongsPlayed", m_iNumSingleSongsPlayed );
|
||||
|
||||
{
|
||||
XNode* pNumStagesPassedByPlayMode = pGeneralDataNode->AppendChild("NumStagesPassedByPlayMode");
|
||||
FOREACH_PlayMode( pm )
|
||||
@@ -1053,6 +1056,8 @@ void Profile::LoadGeneralDataFromNode( const XNode* pNode )
|
||||
pNumSongsPlayedByMeter->GetChildValue( ssprintf("Meter%d",i), m_iNumSongsPlayedByMeter[i] );
|
||||
}
|
||||
|
||||
pNode->GetChildValue("NumSingleSongsPlayed", m_iNumSingleSongsPlayed );
|
||||
|
||||
{
|
||||
const XNode* pNumStagesPassedByGrade = pNode->GetChild("NumStagesPassedByGrade");
|
||||
if( pNumStagesPassedByGrade )
|
||||
|
||||
Reference in New Issue
Block a user