]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
send version info with weaponstats data
authorRudolf Polzer <divVerent@xonotic.org>
Fri, 2 Sep 2011 06:03:36 +0000 (08:03 +0200)
committerRudolf Polzer <divVerent@xonotic.org>
Fri, 2 Sep 2011 06:03:36 +0000 (08:03 +0200)
qcsrc/server/cl_player.qc

index 63ba50d5ba2bec255afafce011e1a96f283a944b..16d413bd063a7552f904da7e565318f6a71d2029 100644 (file)
@@ -25,6 +25,9 @@ void WeaponStats_ready(entity fh, entity pass, float status)
                        prefix = strcat(autocvar_hostname, "\t", GetGametype(), "_", GetMapname(), "\t");
                        url_fputs(fh, "#begin statsfile\n");
                        url_fputs(fh, strcat("#date ", strftime(TRUE, "%a %b %e %H:%M:%S %Z %Y"), "\n"));
+#ifdef WATERMARK
+                       url_fputs(fh, strcat("#version ", WATERMARK(), "\n"));
+#endif
                        url_fputs(fh, strcat("#config ", ftos(crc16(FALSE, cvar_purechanges)), "\n"));
                        url_fputs(fh, strcat("#cvar_purechanges ", ftos(cvar_purechanges_count), "\n"));
                        n = tokenizebyseparator(cvar_purechanges, "\n");