Skip to content

Commit

Permalink
fix uncalled step hits on lagspikes
Browse files Browse the repository at this point in the history
  • Loading branch information
MaybeMaru committed May 5, 2024
1 parent f4741e7 commit 477df16
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions source/funkin/util/backend/MusicBeat.hx
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,12 @@ class MusicBeat extends FlxBasic
updateBeat();
updateSection();

if (lastStep != curStep) if (curStep > -1)
stepHit();
if (curStep > lastStep) if (curStep > -1) {
for (i in 0...(curStep - lastStep)) {
curStep = lastStep + i + 1;
stepHit();
}
}

#if FLX_DEBUG
FlxG.watch.addQuick("curSection", curSection);
Expand Down

0 comments on commit 477df16

Please sign in to comment.