1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 07:33:20 +08:00

Add back null beatmap allowance to GetTotalScore flow to fix playlist aggregate scores

This commit is contained in:
Dean Herbert 2022-01-17 13:11:43 +09:00
parent 88bf406c22
commit a3806f44a5

View File

@ -132,9 +132,10 @@ namespace osu.Game.Scoring
/// <returns>The total score.</returns>
public async Task<long> GetTotalScoreAsync([NotNull] ScoreInfo score, ScoringMode mode = ScoringMode.Standardised, CancellationToken cancellationToken = default)
{
// TODO: ??
// if (score.Beatmap == null)
// return score.TotalScore;
// TODO: This is required for playlist aggregate scores. They should likely not be getting here in the first place.
// ReSharper disable once ConditionIsAlwaysTrueOrFalse
if (score.BeatmapInfo == null)
return score.TotalScore;
int beatmapMaxCombo;
double accuracy = score.Accuracy;