PlaySeconds -> SessionSeconds so that "PlaySeconds" and "GameplaySeconds" aren't confused

This commit is contained in:
Chris Danford
2009-08-08 03:10:41 +00:00
parent 4f25fab1ae
commit c83d0207a7
3 changed files with 12 additions and 14 deletions
+4 -6
View File
@@ -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;
}
}