Skip to content

Commit

Permalink
Fix ScoreV2 combo portion calculation incrementing combo on non-combo…
Browse files Browse the repository at this point in the history
… judgement
  • Loading branch information
Rian8337 committed Jan 3, 2025
1 parent a9cb858 commit 599b4ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ru/nsu/ccfit/zuev/osu/scoring/StatisticV2.java
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ private void addScore(final int amount, final boolean combo) {
int currentMaxCombo = getScoreMaxCombo();
// At this point, the combo increment in registerHit has not happened, but it is necessary for ScoreV2
// calculation, so we do it locally here.
if (currentCombo == currentMaxCombo) {
if (combo && currentCombo == currentMaxCombo) {
currentMaxCombo++;
}

Expand Down

0 comments on commit 599b4ad

Please sign in to comment.