Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Joalor64GH authored Aug 11, 2024
1 parent 58a4836 commit 594c8f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion source/states/ChartingState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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);

/*
Expand Down
8 changes: 4 additions & 4 deletions source/states/MenuState.hx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package states;

class MenuState extends ExtendableState {
var camera:FlxObject;
var cam:FlxObject;
var curSelected:Int = 0;
var grpSelection:FlxTypedGroup<FlxSprite>;
var selections:Array<String> = ['play', 'credits', 'options', 'exit'];
Expand All @@ -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<FlxSprite>();
add(grpSelection);
Expand All @@ -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);
Expand Down

0 comments on commit 594c8f9

Please sign in to comment.