From: Rudolf Polzer Date: Fri, 2 Sep 2011 06:03:36 +0000 (+0200) Subject: send version info with weaponstats data X-Git-Tag: xonotic-v0.5.0~9 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d38dbc7965fea3b0a23d20015213824b12d5b6f7;p=xonotic%2Fxonotic-data.pk3dir.git send version info with weaponstats data --- diff --git a/qcsrc/server/cl_player.qc b/qcsrc/server/cl_player.qc index 63ba50d5b..16d413bd0 100644 --- a/qcsrc/server/cl_player.qc +++ b/qcsrc/server/cl_player.qc @@ -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");