mirror of
https://github.com/ppy/osu.git
synced 2025-02-07 16:22:56 +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;
|
private double? lastPauseActionTime;
|
||||||
|
|
||||||
protected bool PauseCooldownActive =>
|
protected bool PauseCooldownActive =>
|
||||||
lastPauseActionTime.HasValue && GameplayClockContainer.CurrentTime < lastPauseActionTime + PauseCooldownDuration;
|
PlayingState.Value == LocalUserPlayingState.Playing && lastPauseActionTime.HasValue && GameplayClockContainer.CurrentTime < lastPauseActionTime + PauseCooldownDuration;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A set of conditionals which defines whether the current game state and configuration allows for
|
/// A set of conditionals which defines whether the current game state and configuration allows for
|
||||||
|
Loading…
Reference in New Issue
Block a user