mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 09:27:29 +08:00
Replace parantheses with nullable-bool equality operation
This commit is contained in:
parent
a32149fda1
commit
844430502b
@ -13,6 +13,6 @@ namespace osu.Game.Beatmaps
|
||||
/// <summary>
|
||||
/// Whether the beat sync provider is currently in a kiai section. Should make everything more epic.
|
||||
/// </summary>
|
||||
public static bool CheckIsKiaiTime(this IBeatSyncProvider provider) => provider.Clock != null && (provider.ControlPoints?.EffectPointAt(provider.Clock.CurrentTime).KiaiMode ?? false);
|
||||
public static bool CheckIsKiaiTime(this IBeatSyncProvider provider) => provider.Clock != null && provider.ControlPoints?.EffectPointAt(provider.Clock.CurrentTime).KiaiMode == true;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user