mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 06:42:54 +08:00
Call ProcessFrame on the userOffsetClock after a seek
Without doing this, GameplayClock can be left in an incorrect state after a seek (due to the userOffsetClock being its own FramedClock).
This commit is contained in:
parent
efaedafc08
commit
bb69330e9f
@ -136,6 +136,9 @@ namespace osu.Game.Screens.Play
|
||||
// remove the offset component here because most of the time we want the seek to be aligned to gameplay, not the audio track.
|
||||
// we may want to consider reversing the application of offsets in the future as it may feel more correct.
|
||||
adjustableClock.Seek(time - totalOffset);
|
||||
|
||||
// manually process frame to ensure GameplayClock is correctly updated after a seek.
|
||||
userOffsetClock.ProcessFrame();
|
||||
}
|
||||
|
||||
public void Stop()
|
||||
|
Loading…
Reference in New Issue
Block a user