Skip to content

Commit

Permalink
Merge pull request #910 from UltraStar-Deluxe/fix-scoreline-bonus
Browse files Browse the repository at this point in the history
fix scoreline bonus only allowing values up to 990 instead of 1000
  • Loading branch information
basisbit authored Oct 8, 2024
2 parents ef99cc2 + 64445c7 commit e6bb354
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/screens/controllers/UScreenSingController.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1712,7 +1712,7 @@ procedure TScreenSingController.OnSentenceEnd(Track: integer; SentenceIndex: car
// apply line-bonus
CurrentPlayer.ScoreLine :=
CurrentPlayer.ScoreLine + LineBonus * LinePerfection;
CurrentPlayer.ScoreLineInt := Floor(CurrentPlayer.ScoreLine / 10) * 10;
CurrentPlayer.ScoreLineInt := Floor(Round(CurrentPlayer.ScoreLine) / 10) * 10;
// update total score
CurrentPlayer.ScoreTotalInt :=
CurrentPlayer.ScoreInt +
Expand Down

0 comments on commit e6bb354

Please sign in to comment.