Skip to content

Commit bddc38e

Browse files
committed
FIX web (squash)
1 parent 2f5e45a commit bddc38e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

code/client/cl_main.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2234,6 +2234,7 @@ void CL_NextDownload(void)
22342234
{
22352235
char *s;
22362236
char *remoteName, *localName;
2237+
qboolean usedHTTP = qfalse;
22372238

22382239
// A download has finished, check whether this matches a referenced checksum
22392240
if(*clc.downloadName)
@@ -2289,6 +2290,8 @@ void CL_NextDownload(void)
22892290

22902291
CL_InitDownload(localName, remoteURL);
22912292
CL_BeginHttpDownload(remoteURL);
2293+
2294+
usedHTTP = qtrue;
22922295
}
22932296
}
22942297
else if(!(clc.sv_allowDownload & DLF_NO_REDIRECT)) {
@@ -2298,7 +2301,7 @@ void CL_NextDownload(void)
22982301
cl_allowDownload->integer);
22992302
}
23002303
#endif /* USE_HTTP */
2301-
if(!clc.httpUsed) {
2304+
if(!usedHTTP) {
23022305
if((cl_allowDownload->integer & DLF_NO_UDP)) {
23032306
Com_Error(ERR_DROP, "UDP Downloads are "
23042307
"disabled on your client. "

0 commit comments

Comments
 (0)