mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 23:24:04 +09:00
Make sure restart on fail actually fails
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user