mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
common.c
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@636 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
dc18d09ab9
commit
ae7c52985b
1 changed files with 9 additions and 3 deletions
|
@ -1505,7 +1505,7 @@ static int COM_FindFile (const char *filename, int *handle, FILE **file,
|
||||||
searchpath_t *search;
|
searchpath_t *search;
|
||||||
char netpath[MAX_OSPATH];
|
char netpath[MAX_OSPATH];
|
||||||
pack_t *pak;
|
pack_t *pak;
|
||||||
int i, findtime;
|
int i, findtime, l;
|
||||||
|
|
||||||
if (file && handle)
|
if (file && handle)
|
||||||
Sys_Error ("COM_FindFile: both handle and file set");
|
Sys_Error ("COM_FindFile: both handle and file set");
|
||||||
|
@ -1582,8 +1582,14 @@ static int COM_FindFile (const char *filename, int *handle, FILE **file,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Con_DPrintf2 ("FindFile: can't find %s\n", filename); /* if(developer.value >= 2) */
|
l = strlen(filename);
|
||||||
/* would've been better if I'd implement and use Sys_DPrintf() */
|
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);
|
||||||
|
// 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)
|
if (handle)
|
||||||
*handle = -1;
|
*handle = -1;
|
||||||
if (file)
|
if (file)
|
||||||
|
|
Loading…
Reference in a new issue