mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 22:34:09 +08:00
Ensure running state is updated before performing Seek
in GameplayClockContainer.Reset
This commit is contained in:
parent
065bb60324
commit
808f0ecb74
@ -122,14 +122,14 @@ namespace osu.Game.Screens.Play
|
|||||||
if (gameplayStartTime != null)
|
if (gameplayStartTime != null)
|
||||||
StartTime = gameplayStartTime;
|
StartTime = gameplayStartTime;
|
||||||
|
|
||||||
ensureSourceClockSet();
|
|
||||||
Seek(StartTime ?? 0);
|
|
||||||
|
|
||||||
// Manually stop the source in order to not affect the IsPaused state.
|
// Manually stop the source in order to not affect the IsPaused state.
|
||||||
AdjustableSource.Stop();
|
AdjustableSource.Stop();
|
||||||
|
|
||||||
if (!IsPaused.Value || startClock)
|
if (!IsPaused.Value || startClock)
|
||||||
Start();
|
Start();
|
||||||
|
|
||||||
|
ensureSourceClockSet();
|
||||||
|
Seek(StartTime ?? 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user