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

Make sure restart on fail actually fails

This commit is contained in:
Paul Teng 2018-10-31 07:03:37 -04:00
parent 6dde5e3b4a
commit d8f97a32c7

View File

@ -289,15 +289,16 @@ namespace osu.Game.Screens.Play
if (Beatmap.Value.Mods.Value.OfType<IApplicableFailOverride>().Any(m => !m.AllowFail))
return false;
if (Beatmap.Value.Mods.Value.OfType<IApplicableFailOverride>().Any(m => m.RestartOnFail))
{
Restart();
return false;
}
adjustableClock.Stop();
HasFailed = true;
if (Beatmap.Value.Mods.Value.OfType<IApplicableFailOverride>().Any(m => m.RestartOnFail))
{
Restart();
return true;
}
failOverlay.Retries = RestartCount;
failOverlay.Show();
return true;