Skip to content

Commit 3967846

Browse files
authored
Fix server refresh
(adding changes from private repo)
1 parent 997ea40 commit 3967846

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ void UI_DrawConnectScreen(int overlay) {
350350
}
351351

352352
void UI_StartServerRefresh(qboolean full) {
353-
if (*((bool*)0x401EA698)) return;
353+
if (*((bool*)UI_FILE_OFF(0x401EA698))) return;
354354

355355
void(*o)(qboolean);
356356
*(int*)&o = UI_FILE_OFF(0x4000EA90);
@@ -381,7 +381,7 @@ void UI_Init(DWORD base) {
381381
__jmp(UI_FILE_OFF(0x4000A5F0), (int)UI_RunMenuScript);
382382
__call(UI_FILE_OFF(0x400076BE), (int)_UI_Init);
383383

384-
// __call(UI_FILE_OFF(0x4000AA55), (int)UI_StartServerRefresh);
384+
__call(UI_FILE_OFF(0x4000AA55), (int)UI_StartServerRefresh);
385385

386386
cvar_t* xui_connect = Cvar_Get("cg_xui_connect", "0", CVAR_ARCHIVE);
387387
if (xui_connect->integer) {

0 commit comments

Comments
 (0)