Rename StageStats::operator+= to AddStats. (easier to grep for)
Keep track of whether each stage in StageStats was an extra stage. GAMESTATE->m_vPassedStageStats now holds all played songs, including failed ones (renaming in a moment). GameState::GetFinalEvalStatsAndSongs logic was weird. Simplify.
This commit is contained in:
@@ -21,9 +21,10 @@ StageStats::StageStats()
|
||||
memset( this, 0, sizeof(StageStats) );
|
||||
}
|
||||
|
||||
void StageStats::operator+=( const StageStats& other )
|
||||
void StageStats::AddStats( const StageStats& other )
|
||||
{
|
||||
pSong = NULL; // meaningless
|
||||
StageType = STAGE_INVALID; // meaningless
|
||||
memset( fAliveSeconds, 0, sizeof(fAliveSeconds) );
|
||||
|
||||
for( int p=0; p<NUM_PLAYERS; p++ )
|
||||
|
||||
Reference in New Issue
Block a user