mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
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:
parent
951213ce30
commit
c1989375ab
1 changed files with 6 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue