mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-12-04 20:53:57 +00:00
e90c37ad75
Whenever you pause gameplay, the `PlayState` pauses the music. But if you start a song from the main menu, pause during the 3,2,1 countdown, and then unpause, the main menu music will incorrectly start playing again due to `FlxG.sound.music` still referencing it before the gameplay song starts playing. Only restart the music if it was actually playing to begin with by storing the play state in `PlayState.openSubState` when we pause. This hopefully avoids any other cases where the pause state gets pushed while the music is stopped. |
||
---|---|---|
.. | ||
flixel/addons/transition | ||
funkin | ||
haxe/ui/backend/flixel | ||
Main.hx | ||
module.xml | ||
Postbuild.hx | ||
Prebuild.hx |