From 93ac333cbf8439da8a607ca4a6444e431fc164a4 Mon Sep 17 00:00:00 2001 From: Kyle Spier-Swenson Date: Thu, 28 Jun 2018 11:18:37 -0700 Subject: [PATCH] Fixes lobby music playing when you enable it via game preferences while not in the lobby (#38766) --- code/modules/client/preferences.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/client/preferences.dm b/code/modules/client/preferences.dm index 319dd54e3c9..0bf4020744a 100644 --- a/code/modules/client/preferences.dm +++ b/code/modules/client/preferences.dm @@ -1462,7 +1462,7 @@ GLOBAL_LIST_EMPTY(preferences_datums) if("lobby_music") toggles ^= SOUND_LOBBY - if((toggles & SOUND_LOBBY) && user.client) + if((toggles & SOUND_LOBBY) && user.client && isnewplayer(user)) user.client.playtitlemusic() else user.stop_sound_channel(CHANNEL_LOBBYMUSIC)