From 11ea4700429c2f5e1d9058cd1679151f984b8a3e Mon Sep 17 00:00:00 2001 From: bones_was_here Date: Thu, 14 Mar 2024 16:59:33 +1000 Subject: [PATCH] Server list: check libcurl is loaded before reporting xonstat as available See also 7ab7da87c6e4cdee0c74da001faeaf493dc07022 derp. --- qcsrc/common/playerstats.qc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qcsrc/common/playerstats.qc b/qcsrc/common/playerstats.qc index 6aa9b4bf0..9744eda19 100644 --- a/qcsrc/common/playerstats.qc +++ b/qcsrc/common/playerstats.qc @@ -290,7 +290,8 @@ void PlayerStats_GameReport_Init() // initiated before InitGameplayMode so that if(autocvar_g_playerstats_gamereport_uri != cvar_defstring("g_playerstats_gamereport_uri")) serverflags |= SERVERFLAG_PLAYERSTATS | SERVERFLAG_PLAYERSTATS_CUSTOM; - else if(checkextension("DP_CRYPTO")) // xonstat requires player and server IDs + else if(checkextension("DP_CRYPTO") && checkextension("DP_QC_URI_POST")) + // XonStat submission requires player and server IDs, and HTTPS POST serverflags |= SERVERFLAG_PLAYERSTATS; PlayerStats_GameReport_AddEvent(PLAYERSTATS_ALIVETIME); -- 2.39.2