Fixed ambience sound still playing when disabled.

This commit is contained in:
richard 2009-11-24 21:51:48 +01:00
parent b39040bb35
commit 30f3f71268
1 changed files with 2 additions and 0 deletions

View File

@ -69,6 +69,7 @@ bool:AmbientSoundsValidateConfig()
new bool:ambience = GetConVarBool(g_hCvarsList[CVAR_AMBIENTSOUNDS]);
if (!ambience)
{
g_bAmbientSounds = false;
return false;
}
@ -108,6 +109,7 @@ bool:AmbientSoundsValidateConfig()
// Add sound file to downloads table.
AddFileToDownloadsTable(sound);
g_bAmbientSounds = true;
return true;
}