@@ -34,16 +34,16 @@ std::string res;
3434
3535void CL_Connect_f () {
3636 void (*o)() = (void (*)())0x40F6A0 ;
37-
37+
3838 o ();
3939
40- if (*cls_state == CA_CONNECTING || *cls_state == CA_CHALLENGING) {
41- Cvar_Set (" cl_allowDownload" , " 0" );
42- }
43-
44- char * info = clc_stringData + clc_stringOffsets[1 ];
45- char *fs_game = Info_ValueForKey (info, " fs_game" ); // Reset client fs_game if loaded & server doesn't use it.
46- if (fs_game == " " ) {
40+ if (*cls_state == CA_CONNECTING || *cls_state == CA_CHALLENGING) {
41+ Cvar_Set (" cl_allowDownload" , " 0" );
42+ }
43+
44+ char * info = clc_stringData + clc_stringOffsets[1 ];
45+ char *fs_game = Info_ValueForKey (info, " fs_game" ); // Reset client fs_game if loaded & server doesn't use it.
46+ if (strlen ( fs_game) ) {
4747 Cvar_Set (" fs_game" , " " );
4848 }
4949}
@@ -119,6 +119,8 @@ void WWW_BeginDownload(void) {
119119 Q_strncpyz (remoteTempName, FS_BuildOSPath (url, remoteName, " " ), sizeof (remoteTempName));
120120 remoteTempName[strlen (remoteTempName) - 1 ] = ' \0 ' ;
121121
122+ CL_AddReliableCommand (va (" download %s" , remoteName));
123+
122124 if (!DL_BeginDownload (localTempName, remoteTempName, 1 )) {
123125 clc_bWWWDl = false ;
124126 char *error = va (" Download failure while getting '%s'\n " , remoteTempName); // get the msg before clearing structs
@@ -466,4 +468,4 @@ void CL_GlobalServers_f(void) {
466468 buffptr += sprintf (buffptr, " %s" , Cmd_Argv (i));
467469
468470 NET_OutOfBandPrint (NS_SERVER, to, command);
469- }
471+ }
0 commit comments