mirror of https://github.com/ppy/osu
Fix distance snap grid using wrong colour when reference object is unsnapped
This commit is contained in:
parent
75fc57c34b
commit
11fc1f9a1c
|
@ -155,7 +155,7 @@ protected Color4 GetColourForIndexFromPlacement(int placementIndex)
|
|||
{
|
||||
var timingPoint = Beatmap.ControlPointInfo.TimingPointAt(StartTime);
|
||||
double beatLength = timingPoint.BeatLength / beatDivisor.Value;
|
||||
int beatIndex = (int)Math.Round((StartTime - timingPoint.Time) / beatLength);
|
||||
int beatIndex = (int)Math.Floor((StartTime - timingPoint.Time) / beatLength);
|
||||
|
||||
var colour = BindableBeatDivisor.GetColourFor(BindableBeatDivisor.GetDivisorForBeatIndex(beatIndex + placementIndex + 1, beatDivisor.Value), Colours);
|
||||
|
||||
|
|
Loading…
Reference in New Issue