mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-03-10 20:11:42 +00:00
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:
parent
150a69123f
commit
9f11380a74
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;
|
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;
|
||||||
|
|
Loading…
Reference in a new issue