make 5th mix scoring round to the nearest 5 points

make 5th mix combo pre-MAX style
This commit is contained in:
Andrew Wong
2003-08-31 00:16:56 +00:00
parent d067bd0d49
commit a3bfb47be2
2 changed files with 10 additions and 1 deletions
+8 -1
View File
@@ -73,6 +73,7 @@ ScoreKeeper5th::ScoreKeeper5th( const vector<Steps*>& apNotes_, const CStringArr
m_iScore = 0;
m_iScoreRemainder = 0;
m_iCurToastyCombo = 0;
m_iMaxScoreSoFar = 0;
m_iPointBonus = 0;
@@ -261,6 +262,11 @@ void ScoreKeeper5th::AddScore( TapNoteScore score )
}
}
// handle round-to-nearest-5 bit
m_iScore += m_iScoreRemainder;
m_iScoreRemainder = (m_iScore % 5);
m_iScore = m_iScore - m_iScoreRemainder;
ASSERT(m_iScore >= 0);
printf( "score: %i\n", m_iScore );
@@ -379,7 +385,8 @@ void ScoreKeeper5th::HandleTapRowScore( TapNoteScore scoreOfLastTap, int iNumTap
case TNS_MARVELOUS:
case TNS_PERFECT:
case TNS_GREAT:
iCurCombo += iNumTapsInRow;
// iCurCombo += iNumTapsInRow;
iCurCombo++;
break;
}
break;
+2
View File
@@ -19,6 +19,8 @@ class Steps;
class ScoreKeeper5th: public ScoreKeeper
{
int m_iScore;
int m_iScoreRemainder; // used to round score to nearest 5 points
int m_iMaxPossiblePoints;
int m_iTapNotesHit; // number of notes judged so far, needed by scoring