1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-22 17:40:01 +08:00

Add lenience to start times

This commit is contained in:
smoogipoo
2018-03-02 18:20:12 +09:00
Unverified
parent 4aff659272
commit 1f21ccffb0
3 changed files with 3 additions and 3 deletions
@@ -61,7 +61,7 @@ namespace osu.Game.Rulesets.Catch.Tests
public float Position;
public bool Equals(ConvertValue other)
=> Precision.AlmostEquals(StartTime, other.StartTime)
=> Precision.AlmostEquals(StartTime, other.StartTime, conversion_lenience)
&& Precision.AlmostEquals(Position, other.Position, conversion_lenience);
}
}
@@ -53,7 +53,7 @@ namespace osu.Game.Rulesets.Mania.Tests
public int Column;
public bool Equals(ConvertValue other)
=> Precision.AlmostEquals(StartTime, other.StartTime)
=> Precision.AlmostEquals(StartTime, other.StartTime, conversion_lenience)
&& Precision.AlmostEquals(EndTime, other.EndTime, conversion_lenience)
&& Column == other.Column;
}
@@ -61,7 +61,7 @@ namespace osu.Game.Rulesets.Taiko.Tests
public bool IsStrong;
public bool Equals(ConvertValue other)
=> Precision.AlmostEquals(StartTime, other.StartTime)
=> Precision.AlmostEquals(StartTime, other.StartTime, conversion_lenience)
&& Precision.AlmostEquals(EndTime, other.EndTime, conversion_lenience)
&& IsRim == other.IsRim
&& IsCentre == other.IsCentre