Don't spam developers about missing external textures.

git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@627 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
stevenaaus 2012-02-07 20:38:34 +00:00
parent 951213ce30
commit c1989375ab

View file

@ -1505,7 +1505,7 @@ static int COM_FindFile (const char *filename, int *handle, FILE **file,
searchpath_t *search;
char netpath[MAX_OSPATH];
pack_t *pak;
int i, findtime;
int i, findtime, l;
if (file && handle)
Sys_Error ("COM_FindFile: both handle and file set");
@ -1583,6 +1583,10 @@ static int COM_FindFile (const char *filename, int *handle, FILE **file,
}
// 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)