1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 15:47:26 +08:00

Use .Equals everywhere

This commit is contained in:
smoogipoo 2018-07-02 13:23:59 +09:00
parent 9f85c55915
commit aea50e770b
4 changed files with 7 additions and 7 deletions

View File

@ -21,6 +21,6 @@ namespace osu.Game.Beatmaps.ControlPoints
public override bool Equals(ControlPoint other)
=> base.Equals(other)
&& other is DifficultyControlPoint difficulty
&& SpeedMultiplier == difficulty.SpeedMultiplier;
&& SpeedMultiplier.Equals(difficulty.SpeedMultiplier);
}
}

View File

@ -18,7 +18,7 @@ namespace osu.Game.Beatmaps.ControlPoints
public override bool Equals(ControlPoint other)
=> base.Equals(other)
&& other is EffectControlPoint effect
&& KiaiMode == effect.KiaiMode
&& OmitFirstBarLine == effect.OmitFirstBarLine;
&& KiaiMode.Equals(effect.KiaiMode)
&& OmitFirstBarLine.Equals(effect.OmitFirstBarLine);
}
}

View File

@ -46,7 +46,7 @@ namespace osu.Game.Beatmaps.ControlPoints
public override bool Equals(ControlPoint other)
=> base.Equals(other)
&& other is SampleControlPoint sample
&& SampleBank == sample.SampleBank
&& SampleVolume == sample.SampleVolume;
&& SampleBank.Equals(sample.SampleBank)
&& SampleVolume.Equals(sample.SampleVolume);
}
}

View File

@ -27,7 +27,7 @@ namespace osu.Game.Beatmaps.ControlPoints
public override bool Equals(ControlPoint other)
=> base.Equals(other)
&& other is TimingControlPoint timing
&& TimeSignature == timing.TimeSignature
&& BeatLength == timing.beatLength;
&& TimeSignature.Equals(timing.TimeSignature)
&& BeatLength.Equals(timing.BeatLength);
}
}