From 024c760cc26df9330a5673c8595118c042dd53fc Mon Sep 17 00:00:00 2001 From: Cameron Taylor <cameron.taylor.ninja@gmail.com> Date: Wed, 9 Dec 2020 18:14:36 -0500 Subject: [PATCH] fixed pausing desync issue --- source/FreeplayState.hx | 2 +- source/PlayState.hx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/FreeplayState.hx b/source/FreeplayState.hx index 795091ffa..9db9c9a84 100644 --- a/source/FreeplayState.hx +++ b/source/FreeplayState.hx @@ -12,7 +12,7 @@ import lime.utils.Assets; class FreeplayState extends MusicBeatState { - var songs:Array<String> = ["Bopeebo", "Dadbattle", "Fresh", "Tutorial"]; + var songs:Array<String> = ["Pico", "Bopeebo", "Dadbattle", "Fresh", "Tutorial"]; var selector:FlxText; var curSelected:Int = 0; diff --git a/source/PlayState.hx b/source/PlayState.hx index 773bdd136..eb1380261 100644 --- a/source/PlayState.hx +++ b/source/PlayState.hx @@ -578,9 +578,9 @@ class PlayState extends MusicBeatState { if (FlxG.sound.music != null) { - vocals.time = Conductor.songPosition; - FlxG.sound.music.play(); + Conductor.songPosition = FlxG.sound.music.time; + vocals.time = Conductor.songPosition; vocals.play(); }