From 51249160f1b1173a5ef7f17177ebec87c4c7f2f4 Mon Sep 17 00:00:00 2001 From: JordanSantiagoYT Date: Tue, 15 Oct 2024 01:56:28 -0400 Subject: [PATCH] AAAAA fixed the swapnotes thing swapping all notes in the previous amount of sections. oops --- source/editors/ChartingState.hx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/source/editors/ChartingState.hx b/source/editors/ChartingState.hx index 270e0732e5c..720de840b72 100644 --- a/source/editors/ChartingState.hx +++ b/source/editors/ChartingState.hx @@ -1130,7 +1130,6 @@ class ChartingState extends MusicBeatState { var strum = note[0] + Conductor.stepCrochet * (getSectionBeats(daSec) * 4 * value); - var copiedNote:Array = [strum, note[1], note[2], note[3]]; _song.notes[daSec].sectionNotes.push(copiedNote); } @@ -1294,8 +1293,9 @@ class ChartingState extends MusicBeatState { var strum = note[0] + Conductor.stepCrochet * (getSectionBeats(daSec - value1) * 4 * value1); - if (swapNotes) note[1] = (note[1] + 4) % 8; - var copiedNote:Array = [strum, note[1], note[2], note[3]]; + var data = note[1]; + if (swapNotes) data = Std.int(note[1] + 4) % 8; + var copiedNote:Array = [strum, data, note[2], note[3]]; inline _song.notes[daSec].sectionNotes.push(copiedNote); } if (curSection - value1 < 0) @@ -1338,8 +1338,9 @@ class ChartingState extends MusicBeatState { var strum = note[0] + Conductor.stepCrochet * (getSectionBeats(curSec-1) * 4); - if (swapNotes) note[1] = (note[1] + 4) % 8; - var copiedNote:Array = [strum, note[1], note[2], note[3]]; + var data = note[1]; + if (swapNotes) data = Std.int(note[1] + 4) % 8; + var copiedNote:Array = [strum, data, note[2], note[3]]; _song.notes[curSec].sectionNotes.push(copiedNote); } }