Fixes lobby music playing when you enable it via game preferences while not in the lobby (#38766)

This commit is contained in:
Kyle Spier-Swenson
2018-06-28 11:18:37 -07:00
committed by vuonojenmustaturska
parent 97a8c7537f
commit 93ac333cbf
+1 -1
View File
@@ -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)