1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 19:42:55 +08:00

Merge pull request #26606 from peppy/frame-stable-update-while-paused

Allow seeking while paused
This commit is contained in:
Bartłomiej Dach 2024-01-22 09:35:52 +01:00 committed by GitHub
commit af5e6700af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -34,8 +34,6 @@ namespace osu.Game.Rulesets.UI
/// </summary>
internal bool FrameStablePlayback { get; set; } = true;
protected override bool RequiresChildrenUpdate => base.RequiresChildrenUpdate && state != PlaybackState.NotValid;
private readonly Bindable<bool> isCatchingUp = new Bindable<bool>();
private readonly Bindable<bool> waitingOnFrames = new Bindable<bool>();
@ -124,7 +122,7 @@ namespace osu.Game.Rulesets.UI
// if waiting on frames, run one update loop to determine if frames have arrived.
state = PlaybackState.Valid;
}
else if (IsPaused.Value)
else if (IsPaused.Value && !hasReplayAttached)
{
// time should not advance while paused, nor should anything run.
state = PlaybackState.NotValid;