Keep track of total error, in ms.

This commit is contained in:
Glenn Maynard
2003-07-31 23:01:02 +00:00
parent 289e528576
commit 05de095e0e
3 changed files with 5 additions and 1 deletions
+2
View File
@@ -429,6 +429,8 @@ void Player::Step( int col, RageTimer tm )
const float fSecondsFromPerfect = fabsf( fNoteOffset );
GAMESTATE->m_CurStageStats.iTotalError[m_PlayerNumber] += (int) roundf( fSecondsFromPerfect * 1000 );
// calculate TapNoteScore
TapNoteScore score;
+2 -1
View File
@@ -47,8 +47,9 @@ 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];
iSongsPlayed[p] += other.iSongsPlayed[p];
iTotalError[p] += other.iTotalError[p];
}
}
+1
View File
@@ -41,6 +41,7 @@ struct StageStats
/* The number of songs played and passed, respectively. */
int iSongsPassed[NUM_PLAYERS];
int iSongsPlayed[NUM_PLAYERS];
int iTotalError[NUM_PLAYERS];
};