1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 14:57:52 +08:00

Simplify LINQ expression

This commit is contained in:
iiSaLMaN 2019-09-19 08:31:11 +03:00
parent e793854735
commit da4d83063e

View File

@ -89,9 +89,9 @@ namespace osu.Game.Screens.Play
/// <summary>
/// Whether failing should be allowed.
///
/// By default, this checks whether any selected mod disallows failing.
/// By default, this checks whether all selected mods allow failing.
/// </summary>
protected virtual bool AllowFail => !Mods.Value.OfType<IApplicableFailOverride>().Any(m => !m.AllowFail);
protected virtual bool AllowFail => Mods.Value.OfType<IApplicableFailOverride>().All(m => m.AllowFail);
private readonly bool allowPause;
private readonly bool showResults;