mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-09 01:01:07 +00:00
COM_FindFile: in addition to .pcx, suppress "can't find" warning for .tga textures when developer.value < 2
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1212 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
1f3c1a711a
commit
ddefff6b9e
1 changed files with 3 additions and 2 deletions
|
@ -1619,10 +1619,11 @@ static int COM_FindFile (const char *filename, int *handle, FILE **file,
|
|||
}
|
||||
}
|
||||
|
||||
if (strcmp(COM_FileGetExtension(filename), "pcx") != 0)
|
||||
if (strcmp(COM_FileGetExtension(filename), "pcx") != 0
|
||||
&& strcmp(COM_FileGetExtension(filename), "tga") != 0)
|
||||
Con_DPrintf ("FindFile: can't find %s\n", filename);
|
||||
else Con_DPrintf2("FindFile: can't find %s\n", filename);
|
||||
// Log pcx texture misses only if (developer.value >= 2)
|
||||
// Log pcx and tga texture misses only if (developer.value >= 2)
|
||||
|
||||
if (handle)
|
||||
*handle = -1;
|
||||
|
|
Loading…
Reference in a new issue