Don't use Valve file system when calling a FileExists.
This commit is contained in:
@ -202,7 +202,7 @@ stock ClassValidateAttributes(classindex, bool:logErrors = false)
|
||||
!StrEqual(model_path, "no_change", false))
|
||||
{
|
||||
// Check if the file exists.
|
||||
if (!FileExists(model_path, true))
|
||||
if (!FileExists(model_path, false))
|
||||
{
|
||||
flags += ZR_CLASS_MODEL_PATH;
|
||||
if (logErrors)
|
||||
@ -264,7 +264,7 @@ stock ClassValidateAttributes(classindex, bool:logErrors = false)
|
||||
{
|
||||
// Check if the file exists.
|
||||
Format(overlay, sizeof(overlay), "materials/%s.vmt", overlay_path);
|
||||
if (!FileExists(overlay, true))
|
||||
if (!FileExists(overlay, false))
|
||||
{
|
||||
flags += ZR_CLASS_OVERLAY_PATH;
|
||||
if (logErrors)
|
||||
@ -503,7 +503,7 @@ stock ClassValidateEditableAttributes(attributes[ClassEditableAttributes])
|
||||
{
|
||||
// Check if the file exists.
|
||||
Format(overlay, sizeof(overlay), "materials/%s.vmt", overlay_path);
|
||||
if (!FileExists(overlay, true))
|
||||
if (!FileExists(overlay, false))
|
||||
{
|
||||
flags += ZR_CLASS_OVERLAY_PATH;
|
||||
}
|
||||
|
Reference in New Issue
Block a user