1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 04:53:12 +01:00

Fix #4522: Theme music doesn't stop when connected to paused server

Refactor audio initialisation and stop all music and sounds when the screen mode changes.
This commit is contained in:
Ted John
2016-10-03 18:14:34 +01:00
parent 744bc05906
commit 862b715003
9 changed files with 44 additions and 29 deletions

View File

@@ -84,8 +84,7 @@ void editor_load()
{
rct_window *mainWindow;
audio_pause_sounds();
audio_unpause_sounds();
audio_stop_all_music_and_sounds();
object_manager_unload_all_objects();
object_list_load();
map_init(150);
@@ -168,6 +167,7 @@ void trackdesigner_load()
{
rct_window *mainWindow;
audio_stop_all_music_and_sounds();
gScreenFlags = SCREEN_FLAGS_TRACK_DESIGNER;
gScreenAge = 0;
@@ -207,6 +207,7 @@ void trackmanager_load()
{
rct_window *mainWindow;
audio_stop_all_music_and_sounds();
gScreenFlags = SCREEN_FLAGS_TRACK_MANAGER;
gScreenAge = 0;