mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 03:22:55 +08:00
Fix StopUsingBeatmapClock
not transferring time and running state
This commit is contained in:
parent
faa0481fc6
commit
251a85db43
@ -187,7 +187,13 @@ namespace osu.Game.Screens.Play
|
||||
public void StopUsingBeatmapClock()
|
||||
{
|
||||
removeSourceClockAdjustments();
|
||||
ChangeSource(new TrackVirtual(beatmap.Track.Length));
|
||||
|
||||
var virtualTrack = new TrackVirtual(beatmap.Track.Length);
|
||||
virtualTrack.Seek(CurrentTime);
|
||||
if (IsRunning)
|
||||
virtualTrack.Start();
|
||||
ChangeSource(virtualTrack);
|
||||
|
||||
addSourceClockAdjustments();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user