Fix scores not being recalculated in beatmap listing

This commit is contained in:
Dan Balasescu
2022-03-08 19:07:39 +09:00
parent e0dc3a04f3
commit f5cd967635
2 changed files with 3 additions and 2 deletions

View File

@ -79,7 +79,8 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
var beatmapInfo = new BeatmapInfo var beatmapInfo = new BeatmapInfo
{ {
MaxCombo = apiBeatmap.MaxCombo, MaxCombo = apiBeatmap.MaxCombo,
Status = apiBeatmap.Status Status = apiBeatmap.Status,
MD5Hash = apiBeatmap.MD5Hash
}; };
scoreManager.OrderByTotalScoreAsync(value.Scores.Select(s => s.CreateScoreInfo(rulesets, beatmapInfo)).ToArray(), loadCancellationSource.Token) scoreManager.OrderByTotalScoreAsync(value.Scores.Select(s => s.CreateScoreInfo(rulesets, beatmapInfo)).ToArray(), loadCancellationSource.Token)

View File

@ -132,7 +132,7 @@ namespace osu.Game.Scoring
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: This is required for playlist aggregate scores. They should likely not be getting here in the first place. // TODO: This is required for playlist aggregate scores. They should likely not be getting here in the first place.
if (string.IsNullOrEmpty(score.BeatmapInfo.Hash)) if (string.IsNullOrEmpty(score.BeatmapInfo.MD5Hash))
return score.TotalScore; return score.TotalScore;
int beatmapMaxCombo; int beatmapMaxCombo;