Fix serverside issue with the second+ dpp7 download failing.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5469 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2019-06-06 18:03:01 +00:00
parent 1dd8153998
commit 00ab3f5998
3 changed files with 3 additions and 2 deletions

View File

@ -4768,8 +4768,6 @@ void COM_InitArgv (int argc, const char **argv) //not allowed to tprint
largv[com_argc] = argv[com_argc];
if (!Q_strcmp ("-safe", argv[com_argc]))
safe = true;
printf("Arg %i: %s\n", com_argc, argv[com_argc]);
}
if (safe)

View File

@ -571,8 +571,10 @@ typedef struct client_s
qofs_t downloadsize; // total bytes
qofs_t downloadcount; // bytes sent
#ifdef NQPROT
qofs_t downloadacked; //DP-specific
qofs_t downloadstarted; //DP-specific
#endif
int spec_track; // entnum of player tracking

View File

@ -3599,6 +3599,7 @@ void SV_BeginDownload_f(void)
Q_strncpyz(host_client->downloadfn, name, sizeof(host_client->downloadfn));
host_client->downloadcount = 0;
host_client->downloadstarted = false;
host_client->downloadsize = VFS_GETLEN(host_client->download);