fix notes deleting (LIVE ON STREAM!)
This commit is contained in:
@ -1003,27 +1003,19 @@ class ChartingState extends MusicBeatState
|
||||
updateNoteUI();
|
||||
}
|
||||
|
||||
function deleteNote(note:Note):Void
|
||||
{
|
||||
trace(_song.notes[curSection].sectionNotes);
|
||||
for (n in 0..._song.notes[curSection].sectionNotes.length)
|
||||
{
|
||||
var i = _song.notes[curSection].sectionNotes[n];
|
||||
if (i == null)
|
||||
continue;
|
||||
if ((i[0] == note.strumTime + (note.strumTime == 0 ? 0 : 1)
|
||||
? true : i[0] == note.strumTime)
|
||||
&& i[1] % 4 == note.noteData)
|
||||
// Why does it do this?
|
||||
// I DONT FUCKING KNOW!!!!!!!!!!!!!!
|
||||
{
|
||||
trace('GAMING');
|
||||
_song.notes[curSection].sectionNotes.remove(i);
|
||||
}
|
||||
}
|
||||
|
||||
updateGrid();
|
||||
}
|
||||
function deleteNote(note:Note):Void
|
||||
{
|
||||
for (i in _song.notes[curSection].sectionNotes)
|
||||
{
|
||||
if (i[0] == note.strumTime && i[1] % 4 == note.noteData)
|
||||
{
|
||||
_song.notes[curSection].sectionNotes.remove(i);
|
||||
}
|
||||
}
|
||||
|
||||
updateGrid();
|
||||
}
|
||||
|
||||
function clearSection():Void
|
||||
{
|
||||
|
Reference in New Issue
Block a user