]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Server list: only report xonstat as available if IDs are supported
authorbones_was_here <bones_was_here@xonotic.au>
Tue, 12 Mar 2024 22:24:18 +0000 (08:24 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Thu, 14 Mar 2024 06:38:51 +0000 (16:38 +1000)
qcsrc/common/playerstats.qc

index 548246f5fc45a75b82af918a1f9bd9aa70f2b145..6aa9b4bf0124eb763c535e71760a0da73060c66b 100644 (file)
@@ -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);