Fix build without Ken's ZIP library (WITHKPLIB not #define'd in compat.h).

git-svn-id: https://svn.eduke32.com/eduke32@3484 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2013-02-14 16:02:16 +00:00
parent 40874820f3
commit 1bdc416e5f
2 changed files with 4 additions and 2 deletions

View file

@ -1190,6 +1190,7 @@ CACHE1D_FIND_REC *klistpath(const char *_path, const char *mask, int32_t type)
while (search);
}
#ifdef WITHKPLIB
if (!pathsearchmode) // next, zip files
{
char buf[BMAX_PATH+4];
@ -1259,7 +1260,7 @@ CACHE1D_FIND_REC *klistpath(const char *_path, const char *mask, int32_t type)
}
}
}
#endif
// then, grp files
if (!pathsearchmode && !*path && (type & CACHE1D_FIND_FILE))
{

View file

@ -10741,8 +10741,9 @@ void loadtile(int16_t tilenume)
if ((unsigned)tilenume >= (unsigned)MAXTILES) return;
if ((dasiz = tilesizx[tilenume]*tilesizy[tilenume]) <= 0) return;
#ifdef WITHKPLIB
i = tilefilenum[tilenume];
#ifdef WITHKPLIB
if (artptrs[i]) // from zip
{
waloff[tilenume] = (intptr_t)(artptrs[i]) + tilefileoffs[tilenume];