mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 11:42:56 +08:00
Fix incorrect order of operation in pause blocking logic
This commit is contained in:
parent
a4dc544235
commit
2b69c7b325
@ -503,14 +503,17 @@ namespace osu.Game.Screens.Play
|
||||
return;
|
||||
}
|
||||
|
||||
if (canPause && !GameplayClockContainer.IsPaused.Value)
|
||||
if (!GameplayClockContainer.IsPaused.Value)
|
||||
{
|
||||
if (pauseCooldownActive && !GameplayClockContainer.IsPaused.Value)
|
||||
// still want to block if we are within the cooldown period and not already paused.
|
||||
// if we are within the cooldown period and not already paused, the operation should block completely.
|
||||
if (pauseCooldownActive)
|
||||
return;
|
||||
|
||||
Pause();
|
||||
return;
|
||||
if (canPause)
|
||||
{
|
||||
Pause();
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user