1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-04 16:12:58 +08:00

Fix restarting no longer working from results screen

Thanks to tests for pointing that out :blobsweat:
This commit is contained in:
Salman Alshamrani 2024-12-01 02:11:53 -05:00
parent 9140893249
commit 53dce83b56

View File

@ -722,6 +722,16 @@ namespace osu.Game.Screens.Play
skipExitTransition = quickRestart;
PrepareLoaderForRestart?.Invoke(quickRestart);
if (!this.IsCurrentScreen())
{
// if we're called externally (i.e. from results screen),
// use MakeCurrent to exit results screen as well as this player screen
// since ValidForResume = false in here
Debug.Assert(!ValidForResume);
this.MakeCurrent();
return true;
}
return PerformExit(quickRestart);
}