From fae6f22a2bcc313336b33f2eaa2b3b39e430b40e Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Wed, 21 Mar 2018 03:50:47 -0400 Subject: [PATCH] - fix botched merge --- src/d_stats.cpp | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/src/d_stats.cpp b/src/d_stats.cpp index dad85837a..e6c0e196b 100644 --- a/src/d_stats.cpp +++ b/src/d_stats.cpp @@ -38,7 +38,6 @@ extern int sys_ostype; EXTERN_CVAR(Bool, vid_glswfb) extern int currentrenderer; - CVAR(Int, sys_statsenabled, -1, CVAR_ARCHIVE | CVAR_GLOBALCONFIG | CVAR_NOSET) CVAR(String, sys_statshost, "gzstats.drdteam.org", CVAR_ARCHIVE|CVAR_GLOBALCONFIG|CVAR_NOSET) CVAR(Int, sys_statsport, 80, CVAR_ARCHIVE|CVAR_GLOBALCONFIG|CVAR_NOSET) @@ -359,26 +358,3 @@ void D_ConfirmSendStats() } #endif // NO_SEND_STATS - -void D_ConfirmSendStats() -{ - if (sys_statsenabled >= 0) - { - return; - } - - // TODO: texts - static const char *const MESSAGE_TEXT = "send stats?"; - static const char *const TITLE_TEXT = GAMENAME; - - UCVarValue enabled = { 0 }; - -#ifdef _WIN32 - extern HWND Window; - enabled = { MessageBox(Window, MESSAGE_TEXT, TITLE_TEXT, MB_ICONQUESTION | MB_YESNO) == IDYES }; -#else - // TODO -#endif - - sys_statsenabled.ForceSet(enabled, CVAR_Int); -}