mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 18:18:18 +00:00
Disable map sounds with snd_enable 0 as well (fixes #98)
This commit is contained in:
parent
1651c2ea35
commit
4b3dd81a74
|
@ -105,7 +105,7 @@ void CMapSounds::OnRender()
|
||||||
Client()->IntraGameTick());
|
Client()->IntraGameTick());
|
||||||
}
|
}
|
||||||
float offset = s_Time-pSource->m_pSource->m_TimeDelay;
|
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())
|
if(pSource->m_Voice.IsValid())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue