1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2025-01-30 16:36:55 +00:00

crash fix when pressing before loop

This commit is contained in:
Cameron Taylor 2022-07-11 15:04:41 -04:00
parent 4d3766b65b
commit 05858a4f6c

View file

@ -125,7 +125,7 @@ class LatencyState extends MusicBeatSubstate
if (FlxG.keys.justPressed.X)
{
var closestBeat:Int = Math.round(Conductor.songPosition / Conductor.crochet);
var closestBeat:Int = Math.round(Conductor.songPosition / Conductor.crochet) % diffGrp.members.length;
var getDiff:Float = Conductor.songPosition - (closestBeat * Conductor.crochet);
getDiff -= Conductor.visualOffset;