From 619bb7a1cd9cda6658a5e7b78d5e74f5e5b86305 Mon Sep 17 00:00:00 2001 From: TimeServ Date: Sat, 1 Sep 2007 05:18:20 +0000 Subject: [PATCH] fixes to DP7 downloading git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2632 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/server/sv_user.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/engine/server/sv_user.c b/engine/server/sv_user.c index 6034439ba..4f8fb1de5 100644 --- a/engine/server/sv_user.c +++ b/engine/server/sv_user.c @@ -1925,7 +1925,7 @@ void SV_BeginDownload_f(void) // this is needed to cancel the current download if (ISNQCLIENT(host_client)) { - ClientReliableWrite_Begin (host_client, svc_stufftext, 2+strlen(name)); + ClientReliableWrite_Begin (host_client, svc_stufftext, 2+12); ClientReliableWrite_String (host_client, "\nstopdownload\n"); } else @@ -1947,7 +1947,7 @@ void SV_BeginDownload_f(void) if (mvdname) { - ClientReliableWrite_Begin (host_client, svc_stufftext, 17+strlen(mvdname)); + ClientReliableWrite_Begin (host_client, svc_stufftext, 2+15+strlen(mvdname)); ClientReliableWrite_String (host_client, va("\ndownload demos/%s\n", mvdname)); } return; @@ -1960,7 +1960,7 @@ void SV_BeginDownload_f(void) { SV_PrintToClient(host_client, PRINT_HIGH, "Download rejected by server settings\n"); - ClientReliableWrite_Begin (host_client, svc_stufftext, 2+strlen(name)); + ClientReliableWrite_Begin (host_client, svc_stufftext, 2+12); ClientReliableWrite_String (host_client, "\nstopdownload\n"); } #ifdef PEXT_CHUNKEDDOWNLOADS @@ -2016,7 +2016,7 @@ void SV_BeginDownload_f(void) Sys_Printf ("Couldn't download %s to %s\n", name, host_client->name); if (ISNQCLIENT(host_client)) { - ClientReliableWrite_Begin (host_client, svc_stufftext, 2+strlen(name)); + ClientReliableWrite_Begin (host_client, svc_stufftext, 2+12); ClientReliableWrite_String (host_client, "\nstopdownload\n"); } else