From 4b3dd81a74ba40b0e067e136aa2ad1b98af49335 Mon Sep 17 00:00:00 2001 From: def Date: Tue, 25 Nov 2014 19:56:31 +0100 Subject: [PATCH] Disable map sounds with snd_enable 0 as well (fixes #98) --- src/game/client/components/mapsounds.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/client/components/mapsounds.cpp b/src/game/client/components/mapsounds.cpp index 630c9d53c..c16a5ea55 100644 --- a/src/game/client/components/mapsounds.cpp +++ b/src/game/client/components/mapsounds.cpp @@ -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()) {