mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-22 20:11:44 +00:00
fixed up the flocate command.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1474 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
fb387ad41a
commit
f024485827
1 changed files with 5 additions and 2 deletions
|
@ -800,10 +800,13 @@ COM_Locate_f
|
|||
void COM_Locate_f (void)
|
||||
{
|
||||
flocation_t loc;
|
||||
if (FS_FLocateFile(Cmd_Argv(1), FSLFRT_LENGTH, &loc))
|
||||
if (FS_FLocateFile(Cmd_Argv(1), FSLFRT_LENGTH, &loc)>=0)
|
||||
{
|
||||
if (!*loc.rawname)
|
||||
Con_Printf("File is compressed\n");
|
||||
{
|
||||
Con_Printf("File is compressed inside ");
|
||||
loc.search->funcs->PrintPath(loc.search->handle);
|
||||
}
|
||||
else
|
||||
Con_Printf("Inside %s\n", loc.rawname);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue