mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 07:06:35 +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)
|
protected override void OnSuspending(Screen next)
|
||||||
{
|
{
|
||||||
fadeOut();
|
fadeOut();
|
||||||
|
|
||||||
base.OnSuspending(next);
|
base.OnSuspending(next);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override bool OnExiting(Screen next)
|
protected override bool OnExiting(Screen next)
|
||||||
{
|
{
|
||||||
if (HasFailed || !ValidForResume)
|
if (!HasFailed && ValidForResume)
|
||||||
return false;
|
{
|
||||||
|
|
||||||
if (pauseOverlay != null && !HitRenderer.HasReplayLoaded)
|
if (pauseOverlay != null && !HitRenderer.HasReplayLoaded)
|
||||||
{
|
{
|
||||||
//pause screen override logic.
|
//pause screen override logic.
|
||||||
@ -335,6 +333,7 @@ namespace osu.Game.Screens.Play
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
fadeOut();
|
fadeOut();
|
||||||
return base.OnExiting(next);
|
return base.OnExiting(next);
|
||||||
|
Reference in New Issue
Block a user