mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-23 08:07:54 -05: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. |
||
---|---|---|
.. | ||
api | ||
audio | ||
data | ||
graphics | ||
input | ||
modding | ||
play | ||
save | ||
ui | ||
util | ||
Conductor.hx | ||
Highscore.hx | ||
import.hx | ||
InitState.hx | ||
Paths.hx | ||
PlayerSettings.hx | ||
Preferences.hx | ||
Preloader.hx |