fix susnotes after note miss changes oops

This commit is contained in:
MtH 2021-04-20 22:25:38 +02:00
parent 5986b29527
commit a280301809
1 changed files with 14 additions and 1 deletions

View File

@ -2299,7 +2299,20 @@ class PlayState extends MusicBeatState
// if (PreferencesMenu.getPref('downscroll'))
// noteMiss = daNote.y > FlxG.height;
if (daNote.tooLate || daNote.wasGoodHit)
if (daNote.isSustainNote && daNote.wasGoodHit)
{
if ((!PreferencesMenu.getPref('downscroll') && daNote.y < -daNote.height)
|| (PreferencesMenu.getPref('downscroll') && daNote.y > FlxG.height))
{
daNote.active = false;
daNote.visible = false;
daNote.kill();
notes.remove(daNote, true);
daNote.destroy();
}
}
else if (daNote.tooLate || daNote.wasGoodHit)
{
if (daNote.tooLate)
{