mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 16:52:55 +08:00
Fix having negative beat when it should be 0
This commit is contained in:
parent
198542465b
commit
f4c7a02a6f
@ -38,7 +38,7 @@ namespace osu.Game.Graphics.Containers
|
|||||||
|
|
||||||
//should we handle negative beats? (before the start of the controlPoint)
|
//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
|
//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--;
|
beat--;
|
||||||
|
|
||||||
if ((timingPointStart != oldTimingPointStart || beat != oldBeat) && (int)((currentTime - timingPointStart) % beatLength) <= seek_tolerance)
|
if ((timingPointStart != oldTimingPointStart || beat != oldBeat) && (int)((currentTime - timingPointStart) % beatLength) <= seek_tolerance)
|
||||||
@ -57,4 +57,4 @@ namespace osu.Game.Graphics.Containers
|
|||||||
beatmap = game.Beatmap;
|
beatmap = game.Beatmap;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user