Don't give awards if GaveUp or UsedAutoplay

Move bGaveUp into StageStats.  It's not really a per-player value.
This commit is contained in:
Chris Danford
2005-10-01 00:18:13 +00:00
parent bc6c7c89bc
commit fa2a5bddc3
8 changed files with 23 additions and 10 deletions
+7 -2
View File
@@ -23,6 +23,8 @@ StageStats::StageStats()
vpPlayedSongs.clear();
vpPossibleSongs.clear();
StageType = STAGE_INVALID;
bGaveUp = false;
bUsedAutoplay = false;
fGameplaySeconds = 0;
fStepsSeconds = 0;
}
@@ -87,6 +89,9 @@ void StageStats::AddStats( const StageStats& other )
FOREACH_CONST( Song*, other.vpPossibleSongs, s )
vpPossibleSongs.push_back( *s );
StageType = STAGE_INVALID; // meaningless
bGaveUp |= other.bGaveUp;
bUsedAutoplay |= other.bUsedAutoplay;
fGameplaySeconds += other.fGameplaySeconds;
fStepsSeconds += other.fStepsSeconds;
@@ -105,8 +110,8 @@ bool StageStats::OnePassed() const
bool StageStats::AllFailed() const
{
FOREACH_EnabledPlayer( pn )
if( !m_player[pn].bFailed )
FOREACH_EnabledPlayer( p )
if( !m_player[p].bFailed )
return false;
return true;
}