mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 02:43:19 +08:00
Removed unneeded restarting variable
This commit is contained in:
parent
2bd89e922f
commit
1f7373db8f
@ -46,8 +46,6 @@ namespace osu.Game.Screens.Play
|
||||
private const double pause_cooldown = 1000;
|
||||
private double lastPauseActionTime;
|
||||
|
||||
private bool restarting = false;
|
||||
|
||||
private bool canPause => ValidForResume && !HasFailed && Time.Current >= lastPauseActionTime + pause_cooldown;
|
||||
|
||||
private IAdjustableClock sourceClock;
|
||||
@ -247,7 +245,7 @@ namespace osu.Game.Screens.Play
|
||||
|
||||
public void Restart()
|
||||
{
|
||||
restarting = true;
|
||||
ValidForResume = false;
|
||||
OnRestart?.Invoke();
|
||||
Exit();
|
||||
}
|
||||
@ -323,7 +321,7 @@ namespace osu.Game.Screens.Play
|
||||
if (HasFailed || !ValidForResume)
|
||||
return false;
|
||||
|
||||
if (pauseOverlay != null && !HitRenderer.HasReplayLoaded && !restarting)
|
||||
if (pauseOverlay != null && !HitRenderer.HasReplayLoaded)
|
||||
{
|
||||
//pause screen override logic.
|
||||
if (pauseOverlay?.State == Visibility.Hidden && !canPause) return true;
|
||||
|
Loading…
Reference in New Issue
Block a user