1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 13:27:25 +08:00

Add lenience to start times

This commit is contained in:
smoogipoo 2018-03-02 18:20:12 +09:00
parent 4aff659272
commit 1f21ccffb0
3 changed files with 3 additions and 3 deletions

View File

@ -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);
}
}

View File

@ -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;
}

View File

@ -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