store scores as ints
nonstop scoring fixes
This commit is contained in:
@@ -46,7 +46,7 @@ Notes::Notes()
|
|||||||
{
|
{
|
||||||
m_MemCardScores[m].iNumTimesPlayed = 0;
|
m_MemCardScores[m].iNumTimesPlayed = 0;
|
||||||
m_MemCardScores[m].grade = GRADE_NO_DATA;
|
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;
|
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;
|
bNewRecordOut = false;
|
||||||
|
|
||||||
m_MemCardScores[MEMORY_CARD_MACHINE].iNumTimesPlayed++;
|
m_MemCardScores[MEMORY_CARD_MACHINE].iNumTimesPlayed++;
|
||||||
m_MemCardScores[pn].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;
|
m_MemCardScores[pn].grade = grade;
|
||||||
bNewRecordOut = true;
|
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;
|
m_MemCardScores[MEMORY_CARD_MACHINE].grade = grade;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -57,10 +57,10 @@ public:
|
|||||||
{
|
{
|
||||||
int iNumTimesPlayed;
|
int iNumTimesPlayed;
|
||||||
Grade grade;
|
Grade grade;
|
||||||
float fScore;
|
int iScore;
|
||||||
} m_MemCardScores[NUM_MEMORY_CARDS];
|
} 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();
|
void TidyUpData();
|
||||||
|
|||||||
Reference in New Issue
Block a user