Quick fix for song not ending

Simple callback that got deleted last commit now brought back.
This commit is contained in:
Detoria 2021-03-25 03:44:35 -03:00 committed by GitHub
parent 172b879f33
commit 4885afccaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1131,6 +1131,8 @@ class PlayState extends MusicBeatState
if (!paused)
FlxG.sound.playMusic(Paths.inst(PlayState.SONG.song), 1, false);
FlxG.sound.music.onComplete = endSong;
vocals.play();
if (FlxG.save.data.songPosition)
@ -1878,14 +1880,9 @@ class PlayState extends MusicBeatState
}
if (FlxG.save.data.downscroll)
if(FlxG.save.data.noteSpeed != -1)
daNote.y = (strumLine.y - (Conductor.songPosition - daNote.strumTime) * (-0.45 * FlxMath.roundDecimal(FlxG.save.data.noteSpeed, 2)));
else daNote.y = (strumLine.y - (Conductor.songPosition - daNote.strumTime) * (-0.45 * FlxMath.roundDecimal(SONG.speed, 2)));
daNote.y = (strumLine.y - (Conductor.songPosition - daNote.strumTime) * (-0.45 * FlxMath.roundDecimal(SONG.speed, 2)));
else
if(FlxG.save.data.noteSpeed != -1)
daNote.y = (strumLine.y - (Conductor.songPosition - daNote.strumTime) * (0.45 * FlxMath.roundDecimal(FlxG.save.data.noteSpeed, 2)));
else daNote.y = (strumLine.y - (Conductor.songPosition - daNote.strumTime) * (0.45 * FlxMath.roundDecimal(SONG.speed, 2)));
daNote.y = (strumLine.y - (Conductor.songPosition - daNote.strumTime) * (0.45 * FlxMath.roundDecimal(SONG.speed, 2)));
//trace(daNote.y);
// WIP interpolation shit? Need to fix the pause issue
// daNote.y = (strumLine.y - (songTime - daNote.strumTime) * (0.45 * PlayState.SONG.speed));