Fixed ambience sound still playing when disabled.
This commit is contained in:
parent
b39040bb35
commit
30f3f71268
@ -69,6 +69,7 @@ bool:AmbientSoundsValidateConfig()
|
|||||||
new bool:ambience = GetConVarBool(g_hCvarsList[CVAR_AMBIENTSOUNDS]);
|
new bool:ambience = GetConVarBool(g_hCvarsList[CVAR_AMBIENTSOUNDS]);
|
||||||
if (!ambience)
|
if (!ambience)
|
||||||
{
|
{
|
||||||
|
g_bAmbientSounds = false;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -108,6 +109,7 @@ bool:AmbientSoundsValidateConfig()
|
|||||||
// Add sound file to downloads table.
|
// Add sound file to downloads table.
|
||||||
AddFileToDownloadsTable(sound);
|
AddFileToDownloadsTable(sound);
|
||||||
|
|
||||||
|
g_bAmbientSounds = true;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user