Change conditional ordering to allow player to always run its fadeOut sequence.

This commit is contained in:
Dean Herbert
2017-04-18 16:47:30 +09:00
parent 24deaf05b6
commit 2ccb8b154f

View File

@ -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);