mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Fixes lobby music playing when you enable it via game preferences while not in the lobby (#38766)
This commit is contained in:
committed by
yogstation13-bot
parent
7f9ee7c317
commit
4eb069ae4b
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user