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 yogstation13-bot
parent 7f9ee7c317
commit 4eb069ae4b

View File

@@ -1587,7 +1587,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)