mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Use Enum.HasFlag
With .NET core 2.0+ this is as efficient as the ugly code we've been using.
This commit is contained in:
@ -306,8 +306,8 @@ namespace osu.Game.Beatmaps.Formats
|
||||
if (split.Length >= 8)
|
||||
{
|
||||
int effectFlags = int.Parse(split[7]);
|
||||
kiaiMode = (effectFlags & 1) > 0;
|
||||
omitFirstBarSignature = (effectFlags & 8) > 0;
|
||||
kiaiMode = effectFlags.HasFlag(1);
|
||||
omitFirstBarSignature = effectFlags.HasFlag(8);
|
||||
}
|
||||
|
||||
string stringSampleSet = sampleSet.ToString().ToLower();
|
||||
|
Reference in New Issue
Block a user