diff --git a/code/modules/admin/verbs/onlyone.dm b/code/modules/admin/verbs/onlyone.dm index 9cb2bf1d41b..178e0de00fc 100644 --- a/code/modules/admin/verbs/onlyone.dm +++ b/code/modules/admin/verbs/onlyone.dm @@ -61,7 +61,8 @@ for(var/mob/M in GLOB.player_list) if(M.client.prefs.sound & SOUND_MIDI) if(isnewplayer(M) && (M.client.prefs.sound & SOUND_LOBBY)) - M.stop_sound_channel(CHANNEL_LOBBYMUSIC) + // M.stop_sound_channel(CHANNEL_LOBBYMUSIC) + M.client?.tgui_panel?.stop_music() music.volume = 100 * M.client.prefs.get_channel_volume(CHANNEL_ADMIN) SEND_SOUND(M, music) diff --git a/code/modules/admin/verbs/playsound.dm b/code/modules/admin/verbs/playsound.dm index 5eca0d73533..47a4c11d362 100644 --- a/code/modules/admin/verbs/playsound.dm +++ b/code/modules/admin/verbs/playsound.dm @@ -30,7 +30,8 @@ GLOBAL_LIST_EMPTY(sounds_cache) for(var/mob/M in GLOB.player_list) if(M.client.prefs.sound & SOUND_MIDI) if(isnewplayer(M) && (M.client.prefs.sound & SOUND_LOBBY)) - M.stop_sound_channel(CHANNEL_LOBBYMUSIC) + // M.stop_sound_channel(CHANNEL_LOBBYMUSIC) + M.client?.tgui_panel?.stop_music() uploaded_sound.volume = 100 * M.client.prefs.get_channel_volume(CHANNEL_ADMIN) SEND_SOUND(M, uploaded_sound) diff --git a/code/modules/client/preference/preferences.dm b/code/modules/client/preference/preferences.dm index b9ed71a762f..6ea20a21de8 100644 --- a/code/modules/client/preference/preferences.dm +++ b/code/modules/client/preference/preferences.dm @@ -2503,7 +2503,8 @@ GLOBAL_LIST_INIT(special_role_times, list( //minimum age (in days) for accounts if((sound & SOUND_LOBBY) && user.client) user.client.playtitlemusic() else - user.stop_sound_channel(CHANNEL_LOBBYMUSIC) + // user.stop_sound_channel(CHANNEL_LOBBYMUSIC) + user.client?.tgui_panel?.stop_music() if("ghost_ears") toggles ^= PREFTOGGLE_CHAT_GHOSTEARS diff --git a/code/modules/mob/new_player/new_player.dm b/code/modules/mob/new_player/new_player.dm index 1cda991928c..cfe6410cd94 100644 --- a/code/modules/mob/new_player/new_player.dm +++ b/code/modules/mob/new_player/new_player.dm @@ -195,7 +195,8 @@ var/mob/dead/observer/observer = new() src << browse(null, "window=playersetup") spawning = 1 - stop_sound_channel(CHANNEL_LOBBYMUSIC) + // stop_sound_channel(CHANNEL_LOBBYMUSIC) + client?.tgui_panel?.stop_music() observer.started_as_observer = 1 @@ -628,7 +629,8 @@ client.prefs.real_name = random_name(client.prefs.gender) client.prefs.copy_to(new_character) - stop_sound_channel(CHANNEL_LOBBYMUSIC) + // stop_sound_channel(CHANNEL_LOBBYMUSIC) + client?.tgui_panel?.stop_music() if(mind) diff --git a/code/modules/mob/transform_procs.dm b/code/modules/mob/transform_procs.dm index 47ed56e2868..0ae9d6ee706 100644 --- a/code/modules/mob/transform_procs.dm +++ b/code/modules/mob/transform_procs.dm @@ -28,7 +28,8 @@ /mob/proc/AIize() if(client) - stop_sound_channel(CHANNEL_LOBBYMUSIC) + // stop_sound_channel(CHANNEL_LOBBYMUSIC) + client?.tgui_panel?.stop_music() var/mob/living/silicon/ai/O = new (loc,,,1)//No MMI but safety is in effect. O.invisibility = 0