Skip to content

Commit

Permalink
Selecting Notes Work now :)
Browse files Browse the repository at this point in the history
  • Loading branch information
poec987 committed Jun 25, 2024
1 parent 5c6252e commit f417fd4
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions source/ChartingState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1001,16 +1001,13 @@ class ChartingState extends MusicBeatState

function selectNote(note:Note):Void
{
var swagNum:Int = 0;

for (i in _song.notes[curSection].sectionNotes)
{
if (i.strumTime == note.strumTime && i.noteData % 4 == note.noteData)
if (i[0] == note.strumTime && i[1] % 4 == note.noteData)
{
curSelectedNote = _song.notes[curSection].sectionNotes[swagNum];
FlxG.log.add('SELECT THE NOTE');
curSelectedNote = i;
}

swagNum += 1;
}

updateGrid();
Expand Down

0 comments on commit f417fd4

Please sign in to comment.