Fix insufficient leniency when querying sample points

This commit is contained in:
Bartłomiej Dach 2023-10-20 10:26:16 +02:00
parent 59a1915451
commit c89081589c
No known key found for this signature in database
1 changed files with 5 additions and 2 deletions

View File

@ -28,9 +28,12 @@ public class LegacyBeatmapDecoder : LegacyDecoder<Beatmap>
public const int EARLY_VERSION_TIMING_OFFSET = 24;
/// <summary>
/// A small adjustment to the start time of control points to account for rounding/precision errors.
/// A small adjustment to the start time of sample control points to account for rounding/precision errors.
/// </summary>
private const double control_point_leniency = 1;
/// <remarks>
/// Compare: https://github.com/peppy/osu-stable-reference/blob/master/osu!/GameplayElements/HitObjects/HitObject.cs#L319
/// </remarks>
private const double control_point_leniency = 5;
internal static RulesetStore? RulesetStore;