add brackets

This commit is contained in:
Albie 2019-11-24 07:44:35 +00:00
parent 1d6665fe57
commit 9a8e3fe1da

View File

@ -432,7 +432,7 @@ namespace osu.Game.Screens.Play
// cannot pause if we are already in a fail state
&& !HasFailed
// 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 =>
lastPauseActionTime.HasValue && GameplayClockContainer.GameplayClock.CurrentTime < lastPauseActionTime + pause_cooldown;