mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-27 22:42:09 +00:00
fix compiling error when in standalone mode
This commit is contained in:
parent
2d2bdea553
commit
7efcc91265
1 changed files with 12 additions and 3 deletions
|
@ -847,7 +847,7 @@ void SV_WriteDownloadToClient( client_t *cl , msg_t *msg )
|
|||
int curindex;
|
||||
int rate;
|
||||
int blockspersnap;
|
||||
int idPack = 0, missionPack = 0, unreferenced = 1;
|
||||
int unreferenced = 1;
|
||||
char errorMessage[1024];
|
||||
char pakbuf[MAX_QPATH], *pakptr;
|
||||
int numRefPaks;
|
||||
|
@ -855,7 +855,13 @@ void SV_WriteDownloadToClient( client_t *cl , msg_t *msg )
|
|||
if (!*cl->downloadName)
|
||||
return; // Nothing being downloaded
|
||||
|
||||
if (!cl->download) {
|
||||
if(!cl->download)
|
||||
{
|
||||
qboolean idPack = qfalse;
|
||||
#ifndef STANDALONE
|
||||
qboolean missionPack = qfalse;
|
||||
#endif
|
||||
|
||||
// Chop off filename extension.
|
||||
Com_sprintf(pakbuf, sizeof(pakbuf), "%s", cl->downloadName);
|
||||
pakptr = Q_strrchr(pakbuf, '.');
|
||||
|
@ -882,8 +888,11 @@ void SV_WriteDownloadToClient( client_t *cl , msg_t *msg )
|
|||
|
||||
// now that we know the file is referenced,
|
||||
// check whether it's legal to download it.
|
||||
#ifndef STANDALONE
|
||||
missionPack = FS_idPak(pakbuf, BASETA, NUM_TA_PAKS);
|
||||
idPack = missionPack || FS_idPak(pakbuf, BASEGAME, NUM_ID_PAKS);
|
||||
idPack = missionPack;
|
||||
#endif
|
||||
idPack = idPack || FS_idPak(pakbuf, BASEGAME, NUM_ID_PAKS);
|
||||
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue