snap fixes

This commit is contained in:
KadeDeveloper 2021-07-20 13:43:49 -07:00
parent f19c338e4c
commit 1425e57831

View File

@ -1557,6 +1557,9 @@ class ChartingState extends MusicBeatState
var data = TimingStruct.getTimingAtBeat(beats); var data = TimingStruct.getTimingAtBeat(beats);
if (beats <= 0)
FlxG.sound.music.time = 0;
var bpm = data != null ? data.bpm : _song.bpm; var bpm = data != null ? data.bpm : _song.bpm;
if (data != null) if (data != null)
@ -1852,7 +1855,7 @@ class ChartingState extends MusicBeatState
dummyArrow.x = Math.floor(FlxG.mouse.x / GRID_SIZE) * GRID_SIZE; dummyArrow.x = Math.floor(FlxG.mouse.x / GRID_SIZE) * GRID_SIZE;
dummyArrow.y = (Math.floor(FlxG.mouse.y / deezNuts.get(snap)) * deezNuts.get(snap)); dummyArrow.y = (Math.floor(FlxG.mouse.y / (GRID_SIZE / deezNuts.get(snap))) * (GRID_SIZE / deezNuts.get(snap)));
} }
else else
{ {