]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
add more stats directives: "S" = server hostname, "C" = cvar pure changes count ...
authorRudolf Polzer <divVerent@xonotic.org>
Wed, 15 Dec 2010 15:16:52 +0000 (16:16 +0100)
committerRudolf Polzer <divVerent@xonotic.org>
Wed, 15 Dec 2010 15:16:52 +0000 (16:16 +0100)
qcsrc/server/playerstats.qc

index 47e1a7ecd44b11fe7f7a46ae6cbdc8b7d5302040..7904e30ef1efab3ce7ed4dba8214781522401020 100644 (file)
@@ -85,6 +85,7 @@ void PlayerStats_Sent_URI_Get_Callback(float id, float status, string data)
                playerstats_waitforme = TRUE;
 }
 
+//#NO AUTOCVARS START
 void PlayerStats_Shutdown()
 {
        string p, pn;
@@ -109,6 +110,8 @@ void PlayerStats_Shutdown()
                bufstr_set(b, i++, sprintf("T %s.%06d", strftime(FALSE, "%s"), floor(random() * 1000000)));
                bufstr_set(b, i++, sprintf("G %s", GetGametype()));
                bufstr_set(b, i++, sprintf("M %s", GetMapname()));
+               bufstr_set(b, i++, sprintf("S %s", cvar_string("hostname")));
+               bufstr_set(b, i++, sprintf("C %d", cvar_purechanges_count));
                for(p = playerstats_last; (pn = db_get(playerstats_db, sprintf("%s:*", p))) != ""; p = pn)
                {
                        bufstr_set(b, i++, sprintf("P %s", p));
@@ -137,6 +140,7 @@ void PlayerStats_Shutdown()
        db_close(playerstats_db);
        playerstats_db = -1;
 }
+//#NO AUTOCVARS END
 
 void PlayerStats_AddGlobalInfo(entity p)
 {