mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-30 10:44:37 +00:00
fix for #12
This commit is contained in:
parent
3a1a410fe2
commit
a0d99945df
|
@ -64,6 +64,13 @@ class MusicBeatState extends FlxUIState
|
|||
totalSteps += 1;
|
||||
lastStep += Conductor.stepCrochet;
|
||||
|
||||
// If the song is at least 3 steps behind
|
||||
if (Conductor.songPosition > lastStep + (Conductor.stepCrochet * 3))
|
||||
{
|
||||
lastStep = Conductor.songPosition;
|
||||
totalSteps = Math.round(lastStep / Conductor.stepCrochet);
|
||||
}
|
||||
|
||||
if (totalSteps % 4 == 0)
|
||||
beatHit();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue