mirror of
https://github.com/ppy/osu
synced 2024-12-25 16:22:23 +00:00
Fix GetClosestBeatDivisor returning the wrong divisor
This commit is contained in:
parent
fdf8c12947
commit
0d077b7a5d
@ -7,6 +7,7 @@ using System.Linq;
|
||||
using Newtonsoft.Json;
|
||||
using osu.Framework.Bindables;
|
||||
using osu.Framework.Lists;
|
||||
using osu.Framework.Utils;
|
||||
using osu.Game.Screens.Edit;
|
||||
|
||||
namespace osu.Game.Beatmaps.ControlPoints
|
||||
@ -195,7 +196,7 @@ namespace osu.Game.Beatmaps.ControlPoints
|
||||
{
|
||||
double distanceFromSnap = Math.Abs(time - getClosestSnappedTime(timingPoint, time, divisor));
|
||||
|
||||
if (distanceFromSnap < closestTime)
|
||||
if (Precision.DefinitelyBigger(closestTime, distanceFromSnap))
|
||||
{
|
||||
closestDivisor = divisor;
|
||||
closestTime = distanceFromSnap;
|
||||
|
Loading…
Reference in New Issue
Block a user