mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-11 18:50:46 +00:00
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:
parent
40874820f3
commit
1bdc416e5f
2 changed files with 4 additions and 2 deletions
|
@ -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))
|
||||
{
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue