improve code quality using resharper and codefactor advice

This commit is contained in:
Albie
2019-11-24 07:42:39 +00:00
parent 8294b9ebe7
commit 1d6665fe57
4 changed files with 3 additions and 7 deletions

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;