forgot vocals aren't included (#1240)
Co-authored-by: Hyper_ <40342021+NotHyper-474@users.noreply.github.com>
This commit is contained in:
@@ -1041,14 +1041,18 @@ class PauseSubState extends MusicBeatSubState
|
||||
* Quit the game and return to the chart editor.
|
||||
* @param state The current PauseSubState.
|
||||
*/
|
||||
@:access(funkin.play.PlayState)
|
||||
static function quitToChartEditor(state:PauseSubState):Void
|
||||
{
|
||||
#if FEATURE_MOBILE_ADVERTISEMENTS
|
||||
AdMobUtil.removeBanner();
|
||||
#end
|
||||
if (FlxG.sound.music != null) FlxG.sound.music.pause(); // Don't reset song position!
|
||||
// This should come first because the sounds list gets cleared!
|
||||
PlayState.instance?.forEachPausedSound(s -> s.destroy());
|
||||
state.close();
|
||||
PlayState.instance.close(); // This only works because PlayState is a substate!
|
||||
FlxG.sound.music?.pause(); // Don't reset song position!
|
||||
PlayState.instance?.vocals?.pause();
|
||||
PlayState.instance?.close(); // This only works because PlayState is a substate!
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user