Quick fix for song not ending
Simple callback that got deleted last commit now brought back.
This commit is contained in:
parent
172b879f33
commit
4885afccaf
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user