From 795416c066437f9b5f1cc44898c68c429b2059ea Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Tue, 17 Dec 2019 12:06:09 +0900 Subject: [PATCH] Move first beat offset to BeatSyncedContainer --- osu.Game/Graphics/Containers/BeatSyncedContainer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osu.Game/Graphics/Containers/BeatSyncedContainer.cs b/osu.Game/Graphics/Containers/BeatSyncedContainer.cs index a68e536a18..b04d01004a 100644 --- a/osu.Game/Graphics/Containers/BeatSyncedContainer.cs +++ b/osu.Game/Graphics/Containers/BeatSyncedContainer.cs @@ -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)