From: bones_was_here Date: Thu, 14 Mar 2024 06:59:33 +0000 (+1000) Subject: Server list: check libcurl is loaded before reporting xonstat as available X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=11ea4700429c2f5e1d9058cd1679151f984b8a3e;p=xonotic%2Fxonotic-data.pk3dir.git Server list: check libcurl is loaded before reporting xonstat as available See also 7ab7da87c6e4cdee0c74da001faeaf493dc07022 derp. --- 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);