1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 23:13:20 +08:00

Add mention of StarRatingRangeDisplay fallback scenario being wrong for multiplayer

This commit is contained in:
Dean Herbert 2022-02-22 15:37:42 +09:00
parent f12044b03e
commit 057fd6c352

View File

@ -94,6 +94,8 @@ namespace osu.Game.Screens.OnlinePlay.Components
}
else
{
// In multiplayer rooms, the beatmaps of playlist items will not be populated to a point this can be correct.
// Either populating them via BeatmapLookupCache or polling the API for the room's DifficultyRange will be required.
var orderedDifficulties = Playlist.Select(p => p.Beatmap).OrderBy(b => b.StarRating).ToArray();
minDifficulty = new StarDifficulty(orderedDifficulties.Length > 0 ? orderedDifficulties[0].StarRating : 0, 0);