Fix unintentional truncation

This commit is contained in:
Dan Balasescu 2022-05-31 18:17:40 +09:00
parent 44ca350822
commit d6d56ee22d

View File

@ -353,7 +353,7 @@ namespace osu.Game.Rulesets.Scoring
public double ComputeScore(ScoringMode mode, ScoringValues current, ScoringValues maximum)
{
double accuracyRatio = maximum.BaseScore > 0 ? current.BaseScore / maximum.BaseScore : 1;
double comboRatio = maximum.MaxCombo > 0 ? current.MaxCombo / maximum.MaxCombo : 1;
double comboRatio = maximum.MaxCombo > 0 ? (double)current.MaxCombo / maximum.MaxCombo : 1;
return ComputeScore(mode, accuracyRatio, comboRatio, current.BonusScore, maximum.HitObjects);
}