clean m_vPlayedStageStats as players unjoin

This commit is contained in:
Glenn Maynard
2007-04-19 14:34:42 +00:00
parent 1eb380ba2e
commit 57bd25bb0c
6 changed files with 39 additions and 0 deletions
+2
View File
@@ -24,6 +24,7 @@ Grade GetGradeFromPercent( float fPercent, bool bMerciful );
void PlayerStageStats::Init()
{
m_bJoined = false;
m_vpPlayedSteps.clear();
m_vpPossibleSteps.clear();
m_fAliveSeconds = 0;
@@ -63,6 +64,7 @@ void PlayerStageStats::Init()
void PlayerStageStats::AddStats( const PlayerStageStats& other )
{
m_bJoined = other.m_bJoined;
FOREACH_CONST( Steps*, other.m_vpPlayedSteps, s )
m_vpPlayedSteps.push_back( *s );
FOREACH_CONST( Steps*, other.m_vpPossibleSteps, s )