diff --git a/stepmania/src/GameState.cpp b/stepmania/src/GameState.cpp index 18f2e7acc5..27b2ebf070 100644 --- a/stepmania/src/GameState.cpp +++ b/stepmania/src/GameState.cpp @@ -350,7 +350,7 @@ void GameState::JoinPlayer( PlayerNumber pn ) /* Count each player join as a play. */ { Profile* pMachineProfile = PROFILEMAN->GetMachineProfile(); - pMachineProfile->m_iTotalPlays++; + pMachineProfile->m_iTotalSessions++; } // Set the current style to something appropriate for the new number of joined players. @@ -525,7 +525,7 @@ void GameState::LoadProfiles( bool bLoadEdits ) Profile* pPlayerProfile = PROFILEMAN->GetProfile( pn ); if( pPlayerProfile ) - pPlayerProfile->m_iTotalPlays++; + pPlayerProfile->m_iTotalSessions++; } } @@ -717,8 +717,6 @@ void GameState::CommitStageStats() { if( m_bDemonstrationOrJukebox ) return; - if( m_bMultiplayer ) - return; STATSMAN->CommitStatsToProfiles( &STATSMAN->m_CurStageStats ); @@ -726,13 +724,13 @@ void GameState::CommitStageStats() int iPlaySeconds = max( 0, (int) m_timeGameStarted.GetDeltaTime() ); Profile* pMachineProfile = PROFILEMAN->GetMachineProfile(); - pMachineProfile->m_iTotalPlaySeconds += iPlaySeconds; + pMachineProfile->m_iTotalSessionSeconds += iPlaySeconds; FOREACH_HumanPlayer( p ) { Profile* pPlayerProfile = PROFILEMAN->GetProfile( p ); if( pPlayerProfile ) - pPlayerProfile->m_iTotalPlaySeconds += iPlaySeconds; + pPlayerProfile->m_iTotalSessionSeconds += iPlaySeconds; } } diff --git a/stepmania/src/Profile.cpp b/stepmania/src/Profile.cpp index 734276d76a..48339ee7cb 100644 --- a/stepmania/src/Profile.cpp +++ b/stepmania/src/Profile.cpp @@ -117,8 +117,8 @@ void Profile::InitGeneralData() m_LastStepsType = StepsType_Invalid; m_lastSong.Unset(); m_lastCourse.Unset(); - m_iTotalPlays = 0; - m_iTotalPlaySeconds = 0; + m_iTotalSessions = 0; + m_iTotalSessionSeconds = 0; m_iTotalGameplaySeconds = 0; m_fTotalCaloriesBurned = 0; m_GoalType = (GoalType)0; @@ -1069,8 +1069,8 @@ XNode* Profile::SaveGeneralDataCreateNode() const pGeneralDataNode->AppendChild( "LastStepsType", GameManager::GetStepsTypeInfo(m_LastStepsType).szName ); pGeneralDataNode->AppendChild( m_lastSong.CreateNode() ); pGeneralDataNode->AppendChild( m_lastCourse.CreateNode() ); - pGeneralDataNode->AppendChild( "TotalPlays", m_iTotalPlays ); - pGeneralDataNode->AppendChild( "TotalPlaySeconds", m_iTotalPlaySeconds ); + pGeneralDataNode->AppendChild( "TotalSessions", m_iTotalSessions ); + pGeneralDataNode->AppendChild( "TotalSessionSeconds", m_iTotalSessionSeconds ); pGeneralDataNode->AppendChild( "TotalGameplaySeconds", m_iTotalGameplaySeconds ); pGeneralDataNode->AppendChild( "TotalCaloriesBurned", m_fTotalCaloriesBurned ); pGeneralDataNode->AppendChild( "GoalType", m_GoalType ); @@ -1240,8 +1240,8 @@ void Profile::LoadGeneralDataFromNode( const XNode* pNode ) pNode->GetChildValue( "LastStepsType", s ); m_LastStepsType = GameManager::StringToStepsType( s ); pTemp = pNode->GetChild( "Song" ); if( pTemp ) m_lastSong.LoadFromNode( pTemp ); pTemp = pNode->GetChild( "Course" ); if( pTemp ) m_lastCourse.LoadFromNode( pTemp ); - pNode->GetChildValue( "TotalPlays", m_iTotalPlays ); - pNode->GetChildValue( "TotalPlaySeconds", m_iTotalPlaySeconds ); + pNode->GetChildValue( "TotalSessions", m_iTotalSessions ); + pNode->GetChildValue( "TotalSessionSeconds", m_iTotalSessionSeconds ); pNode->GetChildValue( "TotalGameplaySeconds", m_iTotalGameplaySeconds ); pNode->GetChildValue( "TotalCaloriesBurned", m_fTotalCaloriesBurned ); pNode->GetChildValue( "GoalType", *ConvertValue(&m_GoalType) ); diff --git a/stepmania/src/Profile.h b/stepmania/src/Profile.h index b789762065..d72a370de2 100644 --- a/stepmania/src/Profile.h +++ b/stepmania/src/Profile.h @@ -114,8 +114,8 @@ public: StepsType m_LastStepsType; SongID m_lastSong; CourseID m_lastCourse; - int m_iTotalPlays; - int m_iTotalPlaySeconds; + int m_iTotalSessions; + int m_iTotalSessionSeconds; int m_iTotalGameplaySeconds; float m_fTotalCaloriesBurned; GoalType m_GoalType;