mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 22:56:36 +09:00
Change conditional ordering to allow player to always run its fadeOut sequence.
This commit is contained in:
@ -315,15 +315,13 @@ namespace osu.Game.Screens.Play
|
||||
protected override void OnSuspending(Screen next)
|
||||
{
|
||||
fadeOut();
|
||||
|
||||
base.OnSuspending(next);
|
||||
}
|
||||
|
||||
protected override bool OnExiting(Screen next)
|
||||
{
|
||||
if (HasFailed || !ValidForResume)
|
||||
return false;
|
||||
|
||||
if (!HasFailed && ValidForResume)
|
||||
{
|
||||
if (pauseOverlay != null && !HitRenderer.HasReplayLoaded)
|
||||
{
|
||||
//pause screen override logic.
|
||||
@ -335,6 +333,7 @@ namespace osu.Game.Screens.Play
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fadeOut();
|
||||
return base.OnExiting(next);
|
||||
|
Reference in New Issue
Block a user