COM_FindFile: in addition to .pcx, suppress "can't find" warning for .tga textures when developer.value < 2

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1212 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
ewasylishen 2015-05-25 02:00:06 +00:00
parent cb0357e98c
commit c532ecfabd
1 changed files with 3 additions and 2 deletions

View File

@ -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;