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