1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-16 03:02:56 +08:00

Seek using local method

This commit is contained in:
smoogipoo 2021-04-20 17:36:24 +09:00
parent 97fb90d9f4
commit a683e5ec34

View File

@ -105,9 +105,10 @@ namespace osu.Game.Screens.Play
/// </summary> /// </summary>
public virtual void Reset() public virtual void Reset()
{ {
AdjustableSource.Seek(StartOffset); Seek(StartOffset);
AdjustableSource.Stop();
// Manually stop the source in order to not affect the IsPaused state.
AdjustableSource.Stop();
if (!IsPaused.Value) if (!IsPaused.Value)
Start(); Start();