anti-dumbass protection
This commit is contained in:
parent
3a54c04266
commit
5105c95929
@ -1421,7 +1421,7 @@ class PlayState extends MusicBeatState
|
||||
|
||||
|
||||
dataNotes.sort((a, b) -> Std.int(a.strumTime - b.strumTime)); // sort by the earliest note
|
||||
|
||||
|
||||
if (dataNotes.length != 0)
|
||||
{
|
||||
var coolNote = dataNotes[0];
|
||||
@ -1594,6 +1594,18 @@ class PlayState extends MusicBeatState
|
||||
swagNote.sustainLength = songNotes[2];
|
||||
swagNote.scrollFactor.set(0, 0);
|
||||
|
||||
var addNote = false;
|
||||
|
||||
for (i in unspawnNotes)
|
||||
if (i.strumTime == daStrumTime && i.noteData == daNoteData)
|
||||
addNote = true;
|
||||
|
||||
if (addNote)
|
||||
{
|
||||
trace('stacked note, thats cringe');
|
||||
continue;
|
||||
}
|
||||
|
||||
var susLength:Float = swagNote.sustainLength;
|
||||
|
||||
susLength = susLength / Conductor.stepCrochet;
|
||||
|
Loading…
x
Reference in New Issue
Block a user