make missing texture no-spam hack safer

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@629 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
Sander van Dijk 2012-02-08 18:22:55 +00:00
parent 33c1ea94c4
commit 8f4e287407

View file

@ -1584,10 +1584,10 @@ static int COM_FindFile (const char *filename, int *handle, FILE **file,
}
// Don't spam about missing pcx textures
l = strlen(filename);
if (strcmp (filename+l-3,"pcx") != 0)
Con_DPrintf ("FindFile: can't find %s\n", filename);
// Don't spam about missing pcx textures
l = strlen(filename);
if (l<3 || strcmp (filename+l-3,"pcx") != 0)
Con_DPrintf ("FindFile: can't find %s\n", filename);
if (handle)
*handle = -1;