From: bones_was_here Date: Tue, 12 Mar 2024 22:24:18 +0000 (+1000) Subject: Server list: only report xonstat as available if IDs are supported X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7ab7da87c6e4cdee0c74da001faeaf493dc07022;p=xonotic%2Fxonotic-data.pk3dir.git Server list: only report xonstat as available if IDs are supported --- diff --git a/qcsrc/common/playerstats.qc b/qcsrc/common/playerstats.qc index 548246f5f..6aa9b4bf0 100644 --- a/qcsrc/common/playerstats.qc +++ b/qcsrc/common/playerstats.qc @@ -288,11 +288,10 @@ void PlayerStats_GameReport_Init() // initiated before InitGameplayMode so that { PlayerStats_GameReport_DelayMapVote = true; - serverflags |= SERVERFLAG_PLAYERSTATS; if(autocvar_g_playerstats_gamereport_uri != cvar_defstring("g_playerstats_gamereport_uri")) - { - serverflags |= SERVERFLAG_PLAYERSTATS_CUSTOM; - } + serverflags |= SERVERFLAG_PLAYERSTATS | SERVERFLAG_PLAYERSTATS_CUSTOM; + else if(checkextension("DP_CRYPTO")) // xonstat requires player and server IDs + serverflags |= SERVERFLAG_PLAYERSTATS; PlayerStats_GameReport_AddEvent(PLAYERSTATS_ALIVETIME); PlayerStats_GameReport_AddEvent(PLAYERSTATS_AVGLATENCY);