From: Rudolf Polzer Date: Fri, 1 Apr 2011 13:44:20 +0000 (+0200) Subject: send a "R" line in the player stats POST that is the current version string X-Git-Tag: xonotic-v0.5.0~305^2~8 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=fe83e01c40e95d5cc407872f60ff6cd8a069b2db;p=xonotic%2Fxonotic-data.pk3dir.git send a "R" line in the player stats POST that is the current version string --- diff --git a/qcsrc/server/playerstats.qc b/qcsrc/server/playerstats.qc index c5ba3b013..09c042356 100644 --- a/qcsrc/server/playerstats.qc +++ b/qcsrc/server/playerstats.qc @@ -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()));