mirror of
https://github.com/ppy/osu.git
synced 2026-05-18 19:50:31 +08:00
Always fetch leaderboard with score sort mode in solo results
This is borderline pedantic and mostly irrelevant but I think it makes some sense for a bit of extra safety. It definitely does not fix any bugs (that I'm aware of).
This commit is contained in:
@@ -41,12 +41,12 @@ namespace osu.Game.Screens.Ranking
|
||||
{
|
||||
Debug.Assert(Score != null);
|
||||
|
||||
// sort mode intentionally omitted to default to score - results screen only supports sorting by score, so don't pass any other to avoid confusion
|
||||
var criteria = new LeaderboardCriteria(
|
||||
Score.BeatmapInfo!,
|
||||
Score.Ruleset,
|
||||
leaderboardManager.CurrentCriteria?.Scope ?? BeatmapLeaderboardScope.Global,
|
||||
leaderboardManager.CurrentCriteria?.ExactMods,
|
||||
leaderboardManager.CurrentCriteria?.Sorting ?? LeaderboardSortMode.Score
|
||||
leaderboardManager.CurrentCriteria?.ExactMods
|
||||
);
|
||||
var requestTaskSource = new TaskCompletionSource<LeaderboardScores>();
|
||||
globalScores.BindValueChanged(_ =>
|
||||
|
||||
Reference in New Issue
Block a user