1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:57:39 +08:00

Add exception for failing.

This commit is contained in:
Dean Herbert 2017-04-13 19:01:15 +09:00
parent 5f8baf874d
commit 262a2c9f0e
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49

View File

@ -324,6 +324,9 @@ namespace osu.Game.Screens.Play
protected override bool OnExiting(Screen next)
{
if (HasFailed || !ValidForResume)
return false;
if (pauseOverlay != null && !HitRenderer.HasReplayLoaded)
{
//pause screen override logic.