mirror of
https://github.com/ppy/osu.git
synced 2025-01-08 22:02:56 +08:00
Correctly bypass last selected when it is filtered
This commit is contained in:
parent
3a50c4bb51
commit
be4a97c289
@ -333,8 +333,7 @@ namespace osu.Game.Screens.Select
|
|||||||
else
|
else
|
||||||
set = visibleSets.ElementAt(RNG.Next(visibleSets.Count));
|
set = visibleSets.ElementAt(RNG.Next(visibleSets.Count));
|
||||||
|
|
||||||
var visibleBeatmaps = set.Beatmaps.Where(s => !s.Filtered.Value).ToList();
|
select(set);
|
||||||
select(visibleBeatmaps[RNG.Next(visibleBeatmaps.Count)]);
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -756,7 +755,7 @@ namespace osu.Game.Screens.Select
|
|||||||
|
|
||||||
protected override void PerformSelection()
|
protected override void PerformSelection()
|
||||||
{
|
{
|
||||||
if (LastSelected == null)
|
if (LastSelected == null || LastSelected.Filtered.Value)
|
||||||
carousel.SelectNextRandom();
|
carousel.SelectNextRandom();
|
||||||
else
|
else
|
||||||
base.PerformSelection();
|
base.PerformSelection();
|
||||||
|
Loading…
Reference in New Issue
Block a user