Move CheckFailed outside of Schedule().

This commit is contained in:
smoogipooo
2017-03-17 00:30:23 +09:00
parent 7764474cfe
commit b13340c3c8

View File

@ -238,19 +238,19 @@ namespace osu.Game.Screens.Play
} }
private void onCompletion() private void onCompletion()
{
Delay(1000);
Schedule(delegate
{ {
// Force a final check to see if the player has failed // Force a final check to see if the player has failed
// Some game modes (e.g. taiko) fail at the end of the map // Some game modes (e.g. taiko) fail at the end of the map
if (scoreProcessor.CheckFailed()) if (scoreProcessor.CheckFailed())
{ {
// If failed, onFail will be called which will push a new screen. // If failed, onFail will be invoked which will push a new screen.
// Let's not push the completion screen in this case // Let's not push the completion screen in this case
return; return;
} }
Delay(1000);
Schedule(delegate
{
ValidForResume = false; ValidForResume = false;
Push(new Results Push(new Results
{ {