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:
parent
88bf406c22
commit
a3806f44a5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user