1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 21:13:01 +08:00

Fix having negative beat when it should be 0

This commit is contained in:
Javier Flores 2017-05-17 09:23:04 -05:00 committed by GitHub
parent 198542465b
commit f4c7a02a6f

View File

@ -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;
}
}
}
}