1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 18:23:04 +08:00

Fix regression in SampleControlPoint add logic

This commit is contained in:
Dean Herbert 2021-09-02 19:34:09 +09:00
parent 1aff4c2238
commit 2b9157987e

View File

@ -56,7 +56,9 @@ namespace osu.Game.Beatmaps.Legacy
switch (newPoint)
{
case SampleControlPoint _:
return newPoint.IsRedundant(SamplePointAt(time));
// intentionally don't use SamplePointAt (we always need to consider the first sample point).
var existing = BinarySearch(SamplePoints, time);
return newPoint.IsRedundant(existing);
case DifficultyControlPoint _:
return newPoint.IsRedundant(DifficultyPointAt(time));