From f4c7a02a6f06acb13d8ed6c20ef434863fa0c57e Mon Sep 17 00:00:00 2001 From: Javier Flores Date: Wed, 17 May 2017 09:23:04 -0500 Subject: [PATCH] Fix having negative beat when it should be 0 --- osu.Game/Graphics/Containers/BeatSyncedContainer.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osu.Game/Graphics/Containers/BeatSyncedContainer.cs b/osu.Game/Graphics/Containers/BeatSyncedContainer.cs index 2fc7731ef5..3b10e96398 100644 --- a/osu.Game/Graphics/Containers/BeatSyncedContainer.cs +++ b/osu.Game/Graphics/Containers/BeatSyncedContainer.cs @@ -38,7 +38,7 @@ namespace osu.Game.Graphics.Containers //should we handle negative beats? (before the start of the controlPoint) //The beats before the start of the first control point are off by 1, this should do the trick - if (currentTime <= timingPointStart) + if (currentTime < timingPointStart) beat--; if ((timingPointStart != oldTimingPointStart || beat != oldBeat) && (int)((currentTime - timingPointStart) % beatLength) <= seek_tolerance) @@ -57,4 +57,4 @@ namespace osu.Game.Graphics.Containers beatmap = game.Beatmap; } } -} \ No newline at end of file +}