Don't use Valve file system when calling a FileExists.

This commit is contained in:
Oleg Tsvetkov
2016-06-12 00:31:15 +03:00
parent 71d5c297d3
commit 4f460baa9b
4 changed files with 6 additions and 6 deletions

View File

@ -79,7 +79,7 @@ bool:AmbientSoundsValidateConfig()
Format(sound, sizeof(sound), "sound/%s", sound);
// If file doesn't exist, then log error and stop.
if (!FileExists(sound, true))
if (!FileExists(sound, false))
{
// Log invalid sound file error.
LogEvent(false, LogType_Error, LOG_CORE_EVENTS, LogModule_SEffects, "Config Validation", "Invalid sound file specified in \"zr_ambientsounds_file\": %s", sound);