Keep track of played and passed songs separately; it's too much

of a hassle to try to derive one from the other.
This commit is contained in:
Glenn Maynard
2003-02-24 02:43:05 +00:00
parent fff1449239
commit 788ac6a09d
2 changed files with 4 additions and 1 deletions
+1
View File
@@ -45,6 +45,7 @@ void StageStats::operator+=( const StageStats& other )
fRadarActual[p][r] += other.fRadarActual[p][r];
}
fSecondsBeforeFail[p] += other.fSecondsBeforeFail[p];
iSongsPlayed[p] += other.iSongsPlayed[p];
iSongsPassed[p] += other.iSongsPassed[p];
}
}
+3 -1
View File
@@ -37,7 +37,9 @@ struct StageStats
float fRadarPossible[NUM_PLAYERS][NUM_RADAR_CATEGORIES]; // filled in by ScreenGameplay on start of notes
float fRadarActual[NUM_PLAYERS][NUM_RADAR_CATEGORIES]; // filled in by ScreenGameplay on start of notes
float fSecondsBeforeFail[NUM_PLAYERS]; // -1 means didn't/hasn't failed
int iSongsPassed[NUM_PLAYERS]; // For course, this is the number of songs that the player has passed
/* The number of songs played and passed, respectively. */
int iSongsPassed[NUM_PLAYERS];
int iSongsPlayed[NUM_PLAYERS];
};