common.c (COM_FindFile): reverted ultra-hacky revs. 627-629. made it to

report files which aren't found only if developer.value >= 2, i.e. used
Con_DPrintf2 of fitz for the first time since its creation.. would have
been better if I'd implement and use Sys_DPrintf() there.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@634 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
Ozkan Sezer 2012-02-11 15:55:09 +00:00
parent 92f7731114
commit 923e9280cd

View file

@ -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, l;
int i, findtime;
if (file && handle)
Sys_Error ("COM_FindFile: both handle and file set");
@ -1580,15 +1580,10 @@ static int COM_FindFile (const char *filename, int *handle, FILE **file,
return 0; /* dummy valid value for COM_FileExists() */
}
}
}
// Don't spam about missing pcx textures
l = strlen(filename);
if (l<3 || strcmp (filename+l-3,"pcx") != 0)
Con_DPrintf ("FindFile: can't find %s\n", filename);
Con_DPrintf2 ("FindFile: can't find %s\n", filename); /* if(developer.value >= 2) */
/* would've been better if I'd implement and use Sys_DPrintf() */
if (handle)
*handle = -1;
if (file)