From 788ac6a09dc5eb19f2108ac932fd1e0aa2c7d879 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 24 Feb 2003 02:43:05 +0000 Subject: [PATCH] Keep track of played and passed songs separately; it's too much of a hassle to try to derive one from the other. --- stepmania/src/StageStats.cpp | 1 + stepmania/src/StageStats.h | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/stepmania/src/StageStats.cpp b/stepmania/src/StageStats.cpp index c80061dc64..1ef6a15d59 100644 --- a/stepmania/src/StageStats.cpp +++ b/stepmania/src/StageStats.cpp @@ -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]; } } diff --git a/stepmania/src/StageStats.h b/stepmania/src/StageStats.h index 449f110cca..12013bf60f 100644 --- a/stepmania/src/StageStats.h +++ b/stepmania/src/StageStats.h @@ -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]; };