Fixed ambience sound still playing when disabled.
This commit is contained in:
		| @@ -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; | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user