mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 01:02:55 +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>
|
/// <returns>The total score.</returns>
|
||||||
public async Task<long> GetTotalScoreAsync([NotNull] ScoreInfo score, ScoringMode mode = ScoringMode.Standardised, CancellationToken cancellationToken = default)
|
public async Task<long> GetTotalScoreAsync([NotNull] ScoreInfo score, ScoringMode mode = ScoringMode.Standardised, CancellationToken cancellationToken = default)
|
||||||
{
|
{
|
||||||
// TODO: ??
|
// TODO: This is required for playlist aggregate scores. They should likely not be getting here in the first place.
|
||||||
// if (score.Beatmap == null)
|
// ReSharper disable once ConditionIsAlwaysTrueOrFalse
|
||||||
// return score.TotalScore;
|
if (score.BeatmapInfo == null)
|
||||||
|
return score.TotalScore;
|
||||||
|
|
||||||
int beatmapMaxCombo;
|
int beatmapMaxCombo;
|
||||||
double accuracy = score.Accuracy;
|
double accuracy = score.Accuracy;
|
||||||
|
Loading…
Reference in New Issue
Block a user