mirror of
https://github.com/osukey/osukey.git
synced 2025-08-02 14:17:06 +09:00
Only trigger pause cooldown on pause (not exit)
This commit is contained in:
@ -505,6 +505,10 @@ namespace osu.Game.Screens.Play
|
||||
|
||||
if (canPause && !GameplayClockContainer.IsPaused.Value)
|
||||
{
|
||||
if (pauseCooldownActive && !GameplayClockContainer.IsPaused.Value)
|
||||
// still want to block if we are within the cooldown period and not already paused.
|
||||
return;
|
||||
|
||||
Pause();
|
||||
return;
|
||||
}
|
||||
@ -808,14 +812,6 @@ namespace osu.Game.Screens.Play
|
||||
return true;
|
||||
}
|
||||
|
||||
// ValidForResume is false when restarting
|
||||
if (ValidForResume)
|
||||
{
|
||||
if (pauseCooldownActive && !GameplayClockContainer.IsPaused.Value)
|
||||
// still want to block if we are within the cooldown period and not already paused.
|
||||
return true;
|
||||
}
|
||||
|
||||
// GameplayClockContainer performs seeks / start / stop operations on the beatmap's track.
|
||||
// as we are no longer the current screen, we cannot guarantee the track is still usable.
|
||||
GameplayClockContainer?.StopUsingBeatmapClock();
|
||||
|
Reference in New Issue
Block a user