mirror of
https://github.com/ppy/osu.git
synced 2025-01-18 16:52:54 +08:00
Skip the pause cooldown when in intro / break time
Had a quick look at adding test coverage in `TestScenePause` but the setup to get into either of these states seems a bit annoying..
This commit is contained in:
parent
8a2f161619
commit
85ada3275b
@ -1032,7 +1032,7 @@ namespace osu.Game.Screens.Play
|
||||
private double? lastPauseActionTime;
|
||||
|
||||
protected bool PauseCooldownActive =>
|
||||
lastPauseActionTime.HasValue && GameplayClockContainer.CurrentTime < lastPauseActionTime + PauseCooldownDuration;
|
||||
PlayingState.Value == LocalUserPlayingState.Playing && lastPauseActionTime.HasValue && GameplayClockContainer.CurrentTime < lastPauseActionTime + PauseCooldownDuration;
|
||||
|
||||
/// <summary>
|
||||
/// A set of conditionals which defines whether the current game state and configuration allows for
|
||||
|
Loading…
Reference in New Issue
Block a user