mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix menus music playing ingame, closes #349
This commit is contained in:
parent
60e6b87130
commit
6fa6190f84
|
@ -936,7 +936,7 @@ void CMenus::RenderSettingsSound(CUIRect MainView)
|
|||
g_Config.m_SndEnable ^= 1;
|
||||
if(g_Config.m_SndEnable)
|
||||
{
|
||||
if(g_Config.m_SndMusic)
|
||||
if(g_Config.m_SndMusic && Client()->State() == IClient::STATE_OFFLINE)
|
||||
m_pClient->m_pSounds->Play(CSounds::CHN_MUSIC, SOUND_MENU, 1.0f);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue