Round, don't truncate.

This commit is contained in:
Glenn Maynard
2003-09-22 22:26:45 +00:00
parent bc31b9ec65
commit d268e3bb16
+3 -1
View File
@@ -233,8 +233,10 @@ void ScoreKeeperMAX2::AddScore( TapNoteScore score )
iScore += p;
// make score evenly divisible by 5
// only update this on the next step, to make it less *obvious*
/* Round to the nearest 5, instead of always rounding down, so a base score
* of 9 will round to 10, not 5. */
if (p > 0)
iScore -= (iScore % 5);
iScore = ((iScore+2) / 5) * 5;
}
else
{