mirror of https://github.com/ppy/osu
Add back `null` beatmap allowance to `GetTotalScore` flow to fix playlist aggregate scores
This commit is contained in:
parent
88bf406c22
commit
a3806f44a5
|
@ -132,9 +132,10 @@ public void GetTotalScore([NotNull] ScoreInfo score, [NotNull] Action<long> call
|
|||
/// <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;
|
||||
|
|
Loading…
Reference in New Issue