mirror of
https://github.com/ppy/osu.git
synced 2024-12-13 05:22:54 +08:00
Add lenience to start times
This commit is contained in:
parent
4aff659272
commit
1f21ccffb0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user