mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-05-30 08:40:39 +00:00
fix warnings when zlib is not available
This commit is contained in:
parent
1c235242f9
commit
8d579b7a0b
2 changed files with 2 additions and 4 deletions
|
@ -101,7 +101,6 @@ locs_load (char *mapname)
|
|||
vec3_t loc;
|
||||
char tmp[PATH_MAX];
|
||||
char foundname[MAX_OSPATH];
|
||||
char *tmpfndnme;
|
||||
int templength = 0;
|
||||
|
||||
snprintf (tmp, sizeof (tmp), "maps/%s.loc", mapname);
|
||||
|
@ -111,8 +110,7 @@ locs_load (char *mapname)
|
|||
return;
|
||||
}
|
||||
#ifdef HAVE_ZLIB
|
||||
tmpfndnme = foundname;
|
||||
if (strncmp(tmpfndnme + strlen(foundname) - 3,".gz",3) == 0)
|
||||
if (strncmp(foundname + strlen(foundname) - 3,".gz",3) == 0)
|
||||
locisgz = 1;
|
||||
else
|
||||
locisgz = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue