mirror of
https://github.com/ppy/osu
synced 2024-12-15 03:16:17 +00:00
Fill daily challenge top 50 position numbers client-side
Only doing this client-side, because doing this server-side is expensive: https://github.com/ppy/osu-web/pull/11354#discussion_r1689224285
This commit is contained in:
parent
aded31bd07
commit
bf4bf4d39e
@ -138,9 +138,9 @@ namespace osu.Game.Screens.OnlinePlay.DailyChallenge
|
||||
}
|
||||
else
|
||||
{
|
||||
LoadComponentsAsync(best.Select(s => new LeaderboardScoreV2(s, sheared: false)
|
||||
LoadComponentsAsync(best.Select((s, index) => new LeaderboardScoreV2(s, sheared: false)
|
||||
{
|
||||
Rank = s.Position,
|
||||
Rank = index + 1,
|
||||
IsPersonalBest = s.UserID == api.LocalUser.Value.Id,
|
||||
Action = () => PresentScore?.Invoke(s.OnlineID),
|
||||
}), loaded =>
|
||||
|
Loading…
Reference in New Issue
Block a user