mirror of
https://github.com/ppy/osu
synced 2025-03-24 20:08:50 +00:00
Merge pull request #26606 from peppy/frame-stable-update-while-paused
Allow seeking while paused
This commit is contained in:
commit
af5e6700af
@ -34,8 +34,6 @@ namespace osu.Game.Rulesets.UI
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
internal bool FrameStablePlayback { get; set; } = true;
|
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> isCatchingUp = new Bindable<bool>();
|
||||||
|
|
||||||
private readonly Bindable<bool> waitingOnFrames = 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.
|
// if waiting on frames, run one update loop to determine if frames have arrived.
|
||||||
state = PlaybackState.Valid;
|
state = PlaybackState.Valid;
|
||||||
}
|
}
|
||||||
else if (IsPaused.Value)
|
else if (IsPaused.Value && !hasReplayAttached)
|
||||||
{
|
{
|
||||||
// time should not advance while paused, nor should anything run.
|
// time should not advance while paused, nor should anything run.
|
||||||
state = PlaybackState.NotValid;
|
state = PlaybackState.NotValid;
|
||||||
|
Loading…
Reference in New Issue
Block a user