mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-14 00:50:38 +00:00
make missing texture no-spam hack safer
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@629 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
5539f60c75
commit
56f65849c7
1 changed files with 4 additions and 4 deletions
|
@ -1586,7 +1586,7 @@ static int COM_FindFile (const char *filename, int *handle, FILE **file,
|
||||||
|
|
||||||
// Don't spam about missing pcx textures
|
// Don't spam about missing pcx textures
|
||||||
l = strlen(filename);
|
l = strlen(filename);
|
||||||
if (strcmp (filename+l-3,"pcx") != 0)
|
if (l<3 || strcmp (filename+l-3,"pcx") != 0)
|
||||||
Con_DPrintf ("FindFile: can't find %s\n", filename);
|
Con_DPrintf ("FindFile: can't find %s\n", filename);
|
||||||
|
|
||||||
if (handle)
|
if (handle)
|
||||||
|
|
Loading…
Reference in a new issue