Don't spam developers about missing external textures.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@627 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
Steven 2012-02-07 20:38:34 +00:00
parent 150a69123f
commit 9f11380a74

View file

@ -1505,7 +1505,7 @@ static int COM_FindFile (const char *filename, int *handle, FILE **file,
searchpath_t *search; searchpath_t *search;
char netpath[MAX_OSPATH]; char netpath[MAX_OSPATH];
pack_t *pak; pack_t *pak;
int i, findtime; int i, findtime, l;
if (file && handle) if (file && handle)
Sys_Error ("COM_FindFile: both handle and file set"); Sys_Error ("COM_FindFile: both handle and file set");
@ -1583,7 +1583,11 @@ static int COM_FindFile (const char *filename, int *handle, FILE **file,
} }
Con_DPrintf ("FindFile: can't find %s\n", filename);
// Don't spam about missing external textures
l = strlen(filename);
if (strcmp (filename+l-3,"pcx") != 0 && strcmp (filename+l-3,"tga") != 0)
Con_DPrintf ("FindFile: can't find %s\n", filename);
if (handle) if (handle)
*handle = -1; *handle = -1;