Fix menus music playing ingame, closes #349

This commit is contained in:
Henningstone 2015-10-16 19:31:01 +02:00
parent 60e6b87130
commit 6fa6190f84

View file

@ -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