]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
send a "R" line in the player stats POST that is the current version string
authorRudolf Polzer <divVerent@xonotic.org>
Fri, 1 Apr 2011 13:44:20 +0000 (15:44 +0200)
committerRudolf Polzer <divVerent@xonotic.org>
Fri, 1 Apr 2011 13:44:20 +0000 (15:44 +0200)
qcsrc/server/playerstats.qc

index c5ba3b013f63949d8d411750bf4f4627c39caaa2..09c0423563b0c8b00b49f7e44144fd53103ba6a8 100644 (file)
@@ -149,6 +149,7 @@ void PlayerStats_Sent_URI_Get_Callback(float id, float status, string data)
        The following keys are defined:
 
        V: format version (always 1)
+       R: release information on the server
        T: time at which the game ended
        G: game type
        M: map name
@@ -190,6 +191,7 @@ void PlayerStats_Shutdown()
                db_dump(playerstats_db, "foo.db");
 
                bufstr_set(b, i++, "V 1");
+               bufstr_set(b, i++, sprintf("R %s", WATERMARK()));
                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()));