Skip to content

Commit 9024b57

Browse files
authored
Merge pull request #20076 from peppy/fix-beat-sync-after-beatmap-change
Fix beat sync components stopping after beatmap change
2 parents e1e46ad + 23d5e8b commit 9024b57

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)