1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-30 10:22:55 +08:00

Fix pressing up always goes to the first beatmap group difficulty, not the last

This commit is contained in:
MrTheMake 2017-05-21 19:27:34 +02:00
parent 9b87f5d8db
commit 974e8d1f82

View File

@ -155,7 +155,7 @@ namespace osu.Game.Screens.Select
index = (index + direction + groups.Count) % groups.Count; index = (index + direction + groups.Count) % groups.Count;
if (groups[index].State != BeatmapGroupState.Hidden) if (groups[index].State != BeatmapGroupState.Hidden)
{ {
SelectBeatmap(groups[index].BeatmapPanels.First().Beatmap); SelectBeatmap(direction == 1 || skipDifficulties ? groups[index].BeatmapPanels.First().Beatmap : groups[index].BeatmapPanels.Last().Beatmap);
return; return;
} }
} while (index != startIndex); } while (index != startIndex);