mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 21:43:04 +08:00
Move first beat offset to BeatSyncedContainer
This commit is contained in:
parent
438d97f4f5
commit
795416c066
@ -89,7 +89,7 @@ namespace osu.Game.Graphics.Containers
|
||||
|
||||
double beatLength = timingPoint.BeatLength / Divisor;
|
||||
|
||||
int beatIndex = (int)((currentTrackTime - timingPoint.Time) / beatLength);
|
||||
int beatIndex = (int)((currentTrackTime - timingPoint.Time) / beatLength) - (effectPoint.OmitFirstBarLine ? 1 : 0);
|
||||
|
||||
// The beats before the start of the first control point are off by 1, this should do the trick
|
||||
if (currentTrackTime < timingPoint.Time)
|
||||
|
Loading…
Reference in New Issue
Block a user