- fix botched merge

This commit is contained in:
Rachael Alexanderson 2018-03-21 03:50:47 -04:00
parent d829e53bc0
commit fae6f22a2b

View file

@ -38,7 +38,6 @@ extern int sys_ostype;
EXTERN_CVAR(Bool, vid_glswfb) EXTERN_CVAR(Bool, vid_glswfb)
extern int currentrenderer; extern int currentrenderer;
CVAR(Int, sys_statsenabled, -1, CVAR_ARCHIVE | CVAR_GLOBALCONFIG | CVAR_NOSET) 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(String, sys_statshost, "gzstats.drdteam.org", CVAR_ARCHIVE|CVAR_GLOBALCONFIG|CVAR_NOSET)
CVAR(Int, sys_statsport, 80, 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 #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);
}