mirror of
https://github.com/ppy/osu.git
synced 2026-05-17 06:32:36 +08:00
Fix random sound effect not playing correctly
This commit is contained in:
@@ -667,7 +667,9 @@ namespace osu.Game.Screens.SelectV2
|
||||
return false;
|
||||
}
|
||||
|
||||
Scheduler.Add(() =>
|
||||
// CurrentSelectionItem won't be valid until UpdaterAfterChildren.
|
||||
// We probably want to fix this at some point since a few places are working-around this quirk.
|
||||
ScheduleAfterChildren(() =>
|
||||
{
|
||||
if (selectionBefore != null && CurrentSelectionItem != null)
|
||||
playSpinSample(distanceBetween(selectionBefore, CurrentSelectionItem), carouselItems.Count);
|
||||
|
||||
Reference in New Issue
Block a user