1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-12 18:37:46 +08:00

Fix pause shortcut on multiplayer not delayed

This commit is contained in:
Salman Alshamrani 2024-11-24 04:24:31 -05:00
parent 354bc424a3
commit f3155bfc7d

View File

@ -299,7 +299,13 @@ namespace osu.Game.Screens.Play.HUD
{ {
case GlobalAction.Back: case GlobalAction.Back:
if (!pendingAnimation) if (!pendingAnimation)
{
if (IsDangerousAction)
BeginConfirm();
else
Confirm(); Confirm();
}
return true; return true;
case GlobalAction.PauseGameplay: case GlobalAction.PauseGameplay:
@ -307,7 +313,13 @@ namespace osu.Game.Screens.Play.HUD
if (ReplayLoaded.Value) return false; if (ReplayLoaded.Value) return false;
if (!pendingAnimation) if (!pendingAnimation)
{
if (IsDangerousAction)
BeginConfirm();
else
Confirm(); Confirm();
}
return true; return true;
} }