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

View File

@ -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;
} }