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:
parent
6dde5e3b4a
commit
d8f97a32c7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user