1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 11:22:54 +08:00

Ensure running state is updated before performing Seek in GameplayClockContainer.Reset

This commit is contained in:
Dean Herbert 2022-04-11 14:10:50 +09:00
parent 065bb60324
commit 808f0ecb74

View File

@ -122,14 +122,14 @@ namespace osu.Game.Screens.Play
if (gameplayStartTime != null)
StartTime = gameplayStartTime;
ensureSourceClockSet();
Seek(StartTime ?? 0);
// Manually stop the source in order to not affect the IsPaused state.
AdjustableSource.Stop();
if (!IsPaused.Value || startClock)
Start();
ensureSourceClockSet();
Seek(StartTime ?? 0);
}
/// <summary>