mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
at least use the api sensibly and don't screw the whitespace
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@637 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
ae7c52985b
commit
b1afe294f2
1 changed files with 4 additions and 7 deletions
|
@ -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");
|
||||
|
@ -1582,13 +1582,10 @@ static int COM_FindFile (const char *filename, int *handle, FILE **file,
|
|||
}
|
||||
}
|
||||
|
||||
l = strlen(filename);
|
||||
if (l < 3 || strcmp (filename+l-3,"pcx") != 0)
|
||||
Con_DPrintf ("FindFile: can't find %s\n", filename);
|
||||
else
|
||||
Con_DPrintf2 ("FindFile: can't find %s\n", filename);
|
||||
if (strcmp(COM_FileGetExtension(filename), "pcx") != 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)
|
||||
// Would've been better if I'd implement and use Sys_DPrintf() - O.S.
|
||||
|
||||
if (handle)
|
||||
*handle = -1;
|
||||
|
|
Loading…
Reference in a new issue