mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +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 curindex;
|
||||||
int rate;
|
int rate;
|
||||||
int blockspersnap;
|
int blockspersnap;
|
||||||
int idPack = 0, missionPack = 0, unreferenced = 1;
|
int unreferenced = 1;
|
||||||
char errorMessage[1024];
|
char errorMessage[1024];
|
||||||
char pakbuf[MAX_QPATH], *pakptr;
|
char pakbuf[MAX_QPATH], *pakptr;
|
||||||
int numRefPaks;
|
int numRefPaks;
|
||||||
|
@ -855,7 +855,13 @@ void SV_WriteDownloadToClient( client_t *cl , msg_t *msg )
|
||||||
if (!*cl->downloadName)
|
if (!*cl->downloadName)
|
||||||
return; // Nothing being downloaded
|
return; // Nothing being downloaded
|
||||||
|
|
||||||
if (!cl->download) {
|
if(!cl->download)
|
||||||
|
{
|
||||||
|
qboolean idPack = qfalse;
|
||||||
|
#ifndef STANDALONE
|
||||||
|
qboolean missionPack = qfalse;
|
||||||
|
#endif
|
||||||
|
|
||||||
// Chop off filename extension.
|
// Chop off filename extension.
|
||||||
Com_sprintf(pakbuf, sizeof(pakbuf), "%s", cl->downloadName);
|
Com_sprintf(pakbuf, sizeof(pakbuf), "%s", cl->downloadName);
|
||||||
pakptr = Q_strrchr(pakbuf, '.');
|
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,
|
// now that we know the file is referenced,
|
||||||
// check whether it's legal to download it.
|
// check whether it's legal to download it.
|
||||||
|
#ifndef STANDALONE
|
||||||
missionPack = FS_idPak(pakbuf, BASETA, NUM_TA_PAKS);
|
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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue