Skip to content

Commit 5e38a83

Browse files
authored
Merge pull request #14 from PrawyCoD1/main
build 2693
2 parents 45af251 + 22b02ae commit 5e38a83

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

cl_main.cpp

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,16 @@ std::string res;
3434

3535
void 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+
}

version.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
#define BUILDNUMBER 2691
2-
#define BUILD "2691"
1+
#define BUILDNUMBER 2693
2+
#define BUILD "2693"

0 commit comments

Comments
 (0)