From 594c8f982d20a470793800efbcbd56ebfbc96542 Mon Sep 17 00:00:00 2001 From: Joalor64 Date: Sat, 10 Aug 2024 22:36:33 -0400 Subject: [PATCH] fix --- source/states/ChartingState.hx | 2 +- source/states/MenuState.hx | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/source/states/ChartingState.hx b/source/states/ChartingState.hx index a47fcdc..30a1d16 100644 --- a/source/states/ChartingState.hx +++ b/source/states/ChartingState.hx @@ -203,7 +203,7 @@ class ChartingState extends ExtendableState { function deleteNote(note:Note):Void { for (i in song.notes[curSection].sectionNotes) - if (i[0] == note.strum && i[1] % 4 == getNoteIndex(note.dir)) + if (i.strum == note.strum && i.noteData % 4 == getNoteIndex(note.dir)) song.notes[curSection].sectionNotes.remove(i); /* diff --git a/source/states/MenuState.hx b/source/states/MenuState.hx index 6d840c5..11cc89e 100644 --- a/source/states/MenuState.hx +++ b/source/states/MenuState.hx @@ -1,7 +1,7 @@ package states; class MenuState extends ExtendableState { - var camera:FlxObject; + var cam:FlxObject; var curSelected:Int = 0; var grpSelection:FlxTypedGroup; var selections:Array = ['play', 'credits', 'options', 'exit']; @@ -18,8 +18,8 @@ class MenuState extends ExtendableState { grid.velocity.set(40, 40); add(grid); - camera = new FlxObject(0, 0, 1, 1); - add(camera); + cam = new FlxObject(0, 0, 1, 1); + add(cam); grpSelection = new FlxTypedGroup(); add(grpSelection); @@ -33,7 +33,7 @@ class MenuState extends ExtendableState { grpSelection.add(menuItem); } - FlxG.camera.follow(camera, null, 0.60); + FlxG.camera.follow(cam, null, 0.60); var versii:FlxText = new FlxText(5, FlxG.height - 24, 0, 'v${Lib.application.meta.get('version')}', 12); versii.setFormat(Paths.font('vcr.ttf'), 26, FlxColor.WHITE, LEFT, FlxTextBorderStyle.OUTLINE, FlxColor.BLACK);