diff --git a/stepmania/src/Notes.cpp b/stepmania/src/Notes.cpp index 3a250cfd50..9aa66a7317 100644 --- a/stepmania/src/Notes.cpp +++ b/stepmania/src/Notes.cpp @@ -46,7 +46,7 @@ Notes::Notes() { m_MemCardScores[m].iNumTimesPlayed = 0; m_MemCardScores[m].grade = GRADE_NO_DATA; - m_MemCardScores[m].fScore = 0; + m_MemCardScores[m].iScore = 0; } } @@ -274,23 +274,23 @@ void Notes::SetRadarValue(int r, float val) m_fRadarValues[r] = val; } -void Notes::AddScore( PlayerNumber pn, Grade grade, float fScore, bool& bNewRecordOut ) +void Notes::AddScore( PlayerNumber pn, Grade grade, float iScore, bool& bNewRecordOut ) { bNewRecordOut = false; m_MemCardScores[MEMORY_CARD_MACHINE].iNumTimesPlayed++; m_MemCardScores[pn].iNumTimesPlayed++; - if( fScore > m_MemCardScores[pn].fScore ) + if( iScore > m_MemCardScores[pn].iScore ) { - m_MemCardScores[pn].fScore = fScore; + m_MemCardScores[pn].iScore = iScore; m_MemCardScores[pn].grade = grade; bNewRecordOut = true; } - if( fScore > m_MemCardScores[MEMORY_CARD_MACHINE].fScore ) + if( iScore > m_MemCardScores[MEMORY_CARD_MACHINE].iScore ) { - m_MemCardScores[MEMORY_CARD_MACHINE].fScore = fScore; + m_MemCardScores[MEMORY_CARD_MACHINE].iScore = iScore; m_MemCardScores[MEMORY_CARD_MACHINE].grade = grade; } } diff --git a/stepmania/src/Notes.h b/stepmania/src/Notes.h index 1cb2b6f9f5..9a98193bbd 100644 --- a/stepmania/src/Notes.h +++ b/stepmania/src/Notes.h @@ -57,10 +57,10 @@ public: { int iNumTimesPlayed; Grade grade; - float fScore; + int iScore; } m_MemCardScores[NUM_MEMORY_CARDS]; - void AddScore( PlayerNumber pn, Grade grade, float fScore, bool& bNewRecordOut ); + void AddScore( PlayerNumber pn, Grade grade, float iScore, bool& bNewRecordOut ); void TidyUpData();