From d268e3bb16f950640310ba98d1187a676864222c Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 22 Sep 2003 22:26:45 +0000 Subject: [PATCH] Round, don't truncate. --- stepmania/src/ScoreKeeperMAX2.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stepmania/src/ScoreKeeperMAX2.cpp b/stepmania/src/ScoreKeeperMAX2.cpp index c6f7623f70..35b3982ca4 100644 --- a/stepmania/src/ScoreKeeperMAX2.cpp +++ b/stepmania/src/ScoreKeeperMAX2.cpp @@ -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 {