Skip to content

Commit 23d5e8b

Browse files
committed
Fix beat sync components stopping after beatmap change
Not an amazing fix, but it seems to work and would rather get this in ASAP rather than trying to fix at a framework level. Closes #20059.
1 parent e1e46ad commit 23d5e8b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

osu.Game/OsuGameBase.cs

+5
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,11 @@ private void onTrackChanged(WorkingBeatmap beatmap, TrackChangeDirection directi
390390
var framedClock = new FramedClock(beatmap.Track);
391391

392392
beatmapClock.ChangeSource(framedClock);
393+
394+
// Normally the internal decoupled clock will seek the *track* to the decoupled time, but we blocked this.
395+
// It won't behave nicely unless we also set it to the track's time.
396+
// Probably another thing which should be fixed in the decoupled mess (or just replaced).
397+
beatmapClock.Seek(beatmap.Track.CurrentTime);
393398
}
394399

395400
protected virtual void InitialiseFonts()

0 commit comments

Comments
 (0)