1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-23 04:59:53 +08:00
Files
osu-lazer/osu.Game.Tests/NonVisual
T
Bartłomiej Dach 70842f71f4 Fix floating point handling in filter intervals
Due to floating-point rounding and representation errors, filters could
wrongly display results incongruous with the wedge display text (ie.
a beatmap with the BPM of 139.99999 would be displayed as having 140
BPM and also pass the bpm<140 filter).

Apply tolerance when parsing floating-point constraints. The tolerance
chosen is half of what the UI displays for the particular values (so
for example half of 0.1 for AR/DR/CS, 0.01 for stars, etc.)

Tests updated accordingly.
70842f71f4 · 2019-09-22 00:20:55 +02:00
History
..