someones going to hate me

This commit is contained in:
Yoshman29
2023-04-10 15:33:36 +02:00
parent 3f42b140cb
commit 4e19c51f91
2 changed files with 10 additions and 3 deletions
@@ -17,13 +17,17 @@ class CharterNoteGroup extends FlxTypedGroup<CharterNote> {
var oldCur = __currentlyLooping;
__currentlyLooping = true;
var curStep = Conductor.curStepFloat;
if (FlxG.state is Charter && !FlxG.sound.music.playing)
curStep = cast(FlxG.state, Charter).conductorFollowerSpr.y / 40;
while(i < length) {
__loopSprite = members[i];
if (__loopSprite == null || !__loopSprite.exists) {
i++;
continue;
}
if (Math.abs(__loopSprite.step - Conductor.curStepFloat) - __loopSprite.susLength < max)
if (Math.abs(__loopSprite.step - curStep) - __loopSprite.susLength < max)
noteFunc(__loopSprite);
i++;
}