mirror of
https://github.com/ppy/osu
synced 2025-02-18 11:26:57 +00:00
Merge pull request #22047 from Feodor0090/wcd-length-fix
Fix `WaveformComparisonDisplay` does not take into account start time of control points
This commit is contained in:
commit
2803c98612
@ -151,7 +151,7 @@ namespace osu.Game.Screens.Edit.Timing
|
|||||||
if (!displayLocked.Value)
|
if (!displayLocked.Value)
|
||||||
{
|
{
|
||||||
float trackLength = (float)beatmap.Value.Track.Length;
|
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));
|
Scheduler.AddOnce(showFromBeat, (int)(e.MousePosition.X / DrawWidth * totalBeatsAvailable));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user