1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 10:02:59 +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)) if (Beatmap.Value.Mods.Value.OfType<IApplicableFailOverride>().Any(m => !m.AllowFail))
return false; return false;
if (Beatmap.Value.Mods.Value.OfType<IApplicableFailOverride>().Any(m => m.RestartOnFail))
{
Restart();
return false;
}
adjustableClock.Stop(); adjustableClock.Stop();
HasFailed = true; HasFailed = true;
if (Beatmap.Value.Mods.Value.OfType<IApplicableFailOverride>().Any(m => m.RestartOnFail))
{
Restart();
return true;
}
failOverlay.Retries = RestartCount; failOverlay.Retries = RestartCount;
failOverlay.Show(); failOverlay.Show();
return true; return true;