Fix WCD does not take into account start time of control points

This commit is contained in:
ansel 2023-01-06 16:35:39 +03:00
parent 98483d2a1b
commit e90c698e62
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ protected override bool OnMouseMove(MouseMoveEvent e)
if (!displayLocked.Value)
{
float trackLength = (float)beatmap.Value.Track.Length;
int totalBeatsAvailable = (int)(trackLength / timingPoint.BeatLength);
int totalBeatsAvailable = (int)((trackLength - timingPoint.Time) / timingPoint.BeatLength);
Scheduler.AddOnce(showFromBeat, (int)(e.MousePosition.X / DrawWidth * totalBeatsAvailable));
}