1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-13 02:02:46 +00:00
Funkin/source/funkin/play
Mike Welsh e90c37ad75 Fix issue with incorrect music after pausing during countdown
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.
2024-02-16 04:54:27 -08:00
..
character Rework Conversation data parsing 2024-02-07 18:45:13 -05:00
components Reworks to make Pico mode actually work. 2024-02-05 21:35:58 -05:00
cutscene Merge branch 'rewrite/master' into feature/hashlink-hot-reload 2024-02-13 02:23:14 -05:00
event Added units to other song events. 2024-01-26 18:51:36 -07:00
notes Polish note display visuals, and scrap Killer judgement. 2024-01-15 22:10:42 -05:00
scoring Polish note display visuals, and scrap Killer judgement. 2024-01-15 22:10:42 -05:00
song Fix a bug where alt instrumentals will load but not cache. 2024-02-08 02:21:12 -05:00
stage Rest in peace, SwagCamera. 2024-02-13 01:38:11 -05:00
Countdown.hx Rewrite the Conductor to be a singleton instance. 2023-12-14 16:56:20 -05:00
GameOverSubState.hx Merge branch 'rewrite/master' of https://github.com/funkincrew/funkin-secret into feature/freeplay-pico-character 2024-02-13 00:48:26 -05:00
GitarooPause.hx Fix a boatload of deprecation warnings and upgrade a few libraries. 2024-02-05 19:46:11 -05:00
PauseSubState.hx Merge branch 'rewrite/master' into rewrite/weekend-1-gameplay-shaderdev 2024-02-13 02:17:06 -05:00
PlayState.hx Fix issue with incorrect music after pausing during countdown 2024-02-16 04:54:27 -08:00
PlayStatePlaylist.hx Fixes to Pause screen and Results screen 2023-10-11 17:33:55 -04:00
ResultState.hx Rest in peace, SwagCamera. 2024-02-13 01:38:11 -05:00