make score in max2 scoring a multiple of 5 when failing

why?  then it becomes more obvious when someone fails since their last digit switches between 0 and 5,
rather than x and (x + 5) mod 10.

note: this ONLY affects scores after failing and has no effect on scores that don't represent failing scores

oh yea, simplified code a little
This commit is contained in:
Andrew Wong
2003-08-31 09:48:33 +00:00
parent db10cfe80d
commit dd2a9d6f07
+4 -4
View File
@@ -217,11 +217,11 @@ void ScoreKeeperMAX2::AddScore( TapNoteScore score )
// Also, why does this switch on score again instead // Also, why does this switch on score again instead
// of just adding p? -Chris // of just adding p? -Chris
if( GAMESTATE->m_CurStageStats.bFailed[m_PlayerNumber] ) if( GAMESTATE->m_CurStageStats.bFailed[m_PlayerNumber] )
switch( score )
{ {
case TNS_MARVELOUS: m_iScore += 10; break; m_iScore += p;
case TNS_PERFECT: m_iScore += MarvelousEnabled? 9:10; break; // make score evenly divisible by 5
case TNS_GREAT: m_iScore += 5; break; // only update this on the next step, to make it less *obvious*
if (p > 0) m_iScore -= (m_iScore % 5);
} }
else else
m_iScore += GetScore(p, B, sum, m_iTapNotesHit); m_iScore += GetScore(p, B, sum, m_iTapNotesHit);