From 40c0eea0610c2cddb5c64f92fd92f459017ed82d Mon Sep 17 00:00:00 2001
From: Spoike <acceptthis@users.sourceforge.net>
Date: Thu, 6 Jun 2019 18:07:12 +0000
Subject: [PATCH] Fix serverside issue with the second+ dpp7 download failing.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5470 fc73d0e0-1445-4013-8a0c-d673dee63da5
---
 engine/server/sv_user.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/engine/server/sv_user.c b/engine/server/sv_user.c
index 86b4d0372..64214d0c4 100644
--- a/engine/server/sv_user.c
+++ b/engine/server/sv_user.c
@@ -2458,8 +2458,9 @@ static void SV_NextChunkedDownload(unsigned int chunknum, int ezpercent, int ezf
 			ClientReliableWrite_String (host_client, host_client->downloadfn);
 		}
 
-
+#ifdef NQPROT
 		host_client->downloadstarted = false;
+#endif
 
 #if defined(HAVE_LEGACY) && defined(MVD_RECORDING)
 		SV_DownloadQueueNext(host_client);
@@ -3599,7 +3600,9 @@ void SV_BeginDownload_f(void)
 
 	Q_strncpyz(host_client->downloadfn, name, sizeof(host_client->downloadfn));
 	host_client->downloadcount = 0;
+#ifdef NQPROT
 	host_client->downloadstarted = false;
+#endif
 
 	host_client->downloadsize = VFS_GETLEN(host_client->download);
 
@@ -3668,7 +3671,9 @@ void SV_StopDownload_f(void)
 	else
 		SV_ClientPrintf(host_client, PRINT_HIGH, "Can't stop download - not downloading anything\n");
 
+#ifdef NQPROT
 	host_client->downloadstarted = false;
+#endif
 
 #if defined(HAVE_LEGACY) && defined(MVD_RECORDING)
 	SV_DownloadQueueNext(host_client);