diff --git a/source/ChartingState.hx b/source/ChartingState.hx index 4371fad..84c39c1 100644 --- a/source/ChartingState.hx +++ b/source/ChartingState.hx @@ -1240,6 +1240,7 @@ class ChartingState extends MusicBeatState var daSus = i[2]; var note:Note = new Note(daStrumTime, daNoteInfo % 4,null,false,true); + note.rawNoteData = daNoteInfo; note.sustainLength = daSus; note.setGraphicSize(GRID_SIZE, GRID_SIZE); note.updateHitbox(); @@ -1282,7 +1283,7 @@ class ChartingState extends MusicBeatState for (i in _song.notes[curSection].sectionNotes) { - if (i.strumTime == note.strumTime && i.noteData % 4 == note.noteData) + if (i[0] == note.strumTime && i[1] == note.rawNoteData) { curSelectedNote = _song.notes[curSection].sectionNotes[swagNum]; } @@ -1300,7 +1301,7 @@ class ChartingState extends MusicBeatState lastNote = note; for (i in _song.notes[curSection].sectionNotes) { - if (i[0] == note.strumTime && i[1] % 4 == note.noteData) + if (i[0] == note.strumTime && i[1] == note.rawNoteData) { _song.notes[curSection].sectionNotes.remove(i); } diff --git a/source/Note.hx b/source/Note.hx index 8a44b40..d4c4a76 100644 --- a/source/Note.hx +++ b/source/Note.hx @@ -19,6 +19,7 @@ class Note extends FlxSprite public var mustPress:Bool = false; public var noteData:Int = 0; + public var rawNoteData:Int = 0; public var canBeHit:Bool = false; public var tooLate:Bool = false; public var wasGoodHit:Bool = false; diff --git a/source/Section.hx b/source/Section.hx index f153da5..c1af6ac 100644 --- a/source/Section.hx +++ b/source/Section.hx @@ -2,7 +2,7 @@ package; typedef SwagSection = { - var sectionNotes:Array; + var sectionNotes:Array>; var lengthInSteps:Int; var typeOfSection:Int; var mustHitSection:Bool; @@ -13,7 +13,7 @@ typedef SwagSection = class Section { - public var sectionNotes:Array = []; + public var sectionNotes:Array> = []; public var lengthInSteps:Int = 16; public var typeOfSection:Int = 0;