mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 11:27:24 +08:00
Add exception for failing.
This commit is contained in:
parent
5f8baf874d
commit
262a2c9f0e
@ -324,6 +324,9 @@ namespace osu.Game.Screens.Play
|
|||||||
|
|
||||||
protected override bool OnExiting(Screen next)
|
protected override bool OnExiting(Screen next)
|
||||||
{
|
{
|
||||||
|
if (HasFailed || !ValidForResume)
|
||||||
|
return false;
|
||||||
|
|
||||||
if (pauseOverlay != null && !HitRenderer.HasReplayLoaded)
|
if (pauseOverlay != null && !HitRenderer.HasReplayLoaded)
|
||||||
{
|
{
|
||||||
//pause screen override logic.
|
//pause screen override logic.
|
||||||
|
Loading…
Reference in New Issue
Block a user