mirror of
https://github.com/ppy/osu
synced 2024-12-15 19:36:34 +00:00
add brackets
This commit is contained in:
parent
1d6665fe57
commit
9a8e3fe1da
@ -432,7 +432,7 @@ namespace osu.Game.Screens.Play
|
|||||||
// cannot pause if we are already in a fail state
|
// cannot pause if we are already in a fail state
|
||||||
&& !HasFailed
|
&& !HasFailed
|
||||||
// cannot pause if already paused (or in a cooldown state) unless we are in a resuming state.
|
// cannot pause if already paused (or in a cooldown state) unless we are in a resuming state.
|
||||||
&& (IsResuming || GameplayClockContainer.IsPaused.Value == false && !pauseCooldownActive);
|
&& (IsResuming || (GameplayClockContainer.IsPaused.Value == false && !pauseCooldownActive));
|
||||||
|
|
||||||
private bool pauseCooldownActive =>
|
private bool pauseCooldownActive =>
|
||||||
lastPauseActionTime.HasValue && GameplayClockContainer.GameplayClock.CurrentTime < lastPauseActionTime + pause_cooldown;
|
lastPauseActionTime.HasValue && GameplayClockContainer.GameplayClock.CurrentTime < lastPauseActionTime + pause_cooldown;
|
||||||
|
Loading…
Reference in New Issue
Block a user