From 39965c247248dc4793a8e66b1a5c33a13804618e Mon Sep 17 00:00:00 2001 From: sezero Date: Sat, 11 Feb 2012 15:55:09 +0000 Subject: [PATCH] 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: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@634 af15c1b1-3010-417e-b628-4374ebc0bcbd --- Quake/common.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/Quake/common.c b/Quake/common.c index ad71832d..6080ce75 100644 --- a/Quake/common.c +++ b/Quake/common.c @@ -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)