Fix escape not continuing to results screen

This commit is contained in:
smoogipoo 2019-12-26 18:27:48 +09:00
parent 5a11fe9a84
commit 8903f286ef

View File

@ -541,8 +541,14 @@ namespace osu.Game.Screens.Play
{
if (completionProgressDelegate != null && !completionProgressDelegate.Cancelled && !completionProgressDelegate.Completed)
{
// proceed to result screen if beatmap already finished playing
completionProgressDelegate.RunTask();
// Proceed to result screen if beatmap already finished playing.
// This is scheduled since the player needs to become the current screen before the delegate runs. This happens after the return true.
Scheduler.Add(() =>
{
if (!completionProgressDelegate.Completed && !completionProgressDelegate.Cancelled)
completionProgressDelegate.RunTask();
});
return true;
}