mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 19:12:57 +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()
|
public void StopUsingBeatmapClock()
|
||||||
{
|
{
|
||||||
removeSourceClockAdjustments();
|
removeSourceClockAdjustments();
|
||||||
ChangeSource(new TrackVirtual(beatmap.Track.Length));
|
|
||||||
|
var virtualTrack = new TrackVirtual(beatmap.Track.Length);
|
||||||
|
virtualTrack.Seek(CurrentTime);
|
||||||
|
if (IsRunning)
|
||||||
|
virtualTrack.Start();
|
||||||
|
ChangeSource(virtualTrack);
|
||||||
|
|
||||||
addSourceClockAdjustments();
|
addSourceClockAdjustments();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user