1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 10:02:59 +08:00

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) if (completionProgressDelegate != null && !completionProgressDelegate.Cancelled && !completionProgressDelegate.Completed)
{ {
// proceed to result screen if beatmap already finished playing // Proceed to result screen if beatmap already finished playing.
completionProgressDelegate.RunTask(); // 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; return true;
} }