1
0
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:
Dean Herbert 2024-12-16 14:14:30 +09:00
parent 8a2f161619
commit 85ada3275b
No known key found for this signature in database

View File

@ -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