Disable map sounds with snd_enable 0 as well (fixes #98)

This commit is contained in:
def 2014-11-25 19:56:31 +01:00
parent 1651c2ea35
commit 4b3dd81a74

View file

@ -105,7 +105,7 @@ void CMapSounds::OnRender()
Client()->IntraGameTick());
}
float offset = s_Time-pSource->m_pSource->m_TimeDelay;
if(offset >= 0.0f)
if(offset >= 0.0f && g_Config.m_SndEnable)
{
if(pSource->m_Voice.IsValid())
{