Add HasQuit gameplay state

This commit is contained in:
Dan Balasescu
2022-01-26 02:02:31 +09:00
parent 781cb9f18d
commit 38e075c522
2 changed files with 8 additions and 0 deletions

View File

@ -983,6 +983,9 @@ namespace osu.Game.Screens.Play
public override bool OnExiting(IScreen next)
{
if (!GameplayState.HasPassed && !GameplayState.HasFailed)
GameplayState.HasQuit = true;
screenSuspension?.RemoveAndDisposeImmediately();
failAnimationLayer?.RemoveFilters();