Keep track of total error, in ms.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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];
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user