mirror of
https://github.com/osukey/osukey.git
synced 2025-05-17 03:27:21 +09:00
parent
e2baa0e5cb
commit
4d2a677080
@ -262,7 +262,11 @@ namespace osu.Game.Overlays
|
|||||||
{
|
{
|
||||||
if (beatmap is Bindable<WorkingBeatmap> working)
|
if (beatmap is Bindable<WorkingBeatmap> working)
|
||||||
working.Value = beatmaps.GetWorkingBeatmap(playable.Beatmaps.First(), beatmap.Value);
|
working.Value = beatmaps.GetWorkingBeatmap(playable.Beatmaps.First(), beatmap.Value);
|
||||||
beatmap.Value.Track.Restart();
|
|
||||||
|
// if not scheduled, the previously track will be stopped one frame later (see ScheduleAfterChildren logic in GameBase).
|
||||||
|
// we probably want to move this to a central method for switching to a new working beatmap in the future.
|
||||||
|
Schedule(() => beatmap.Value.Track.Restart());
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user