From 634c81128e059e883e9d9ee198937fd055639f6c Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Thu, 18 Aug 2011 06:49:30 +0200 Subject: [PATCH] weaponstats: include cvar_purechanges --- qcsrc/server/cl_player.qc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/qcsrc/server/cl_player.qc b/qcsrc/server/cl_player.qc index 6f82d9f10..cd7c81d0c 100644 --- a/qcsrc/server/cl_player.qc +++ b/qcsrc/server/cl_player.qc @@ -15,7 +15,7 @@ void WeaponStats_Init() void WeaponStats_Shutdown() { - float i, j, ibot, jbot, idx; + float i, j, n, ibot, jbot, idx; float fh; vector v; string prefix; @@ -29,7 +29,11 @@ void WeaponStats_Shutdown() { fputs(fh, "#begin statsfile\n"); fputs(fh, strcat("#date ", strftime(TRUE, "%a %b %e %H:%M:%S %Z %Y"), "\n")); - fputs(fh, strcat("#config ", ftos(crc16(FALSE, cvar_changes)), "\n")); + fputs(fh, strcat("#config ", ftos(crc16(FALSE, cvar_purechanges)), "\n")); + fputs(fh, strcat("#cvar_purechanges ", ftos(cvar_purechanges_count), "\n")); + n = tokenizebyseparator(cvar_purechanges, "\n"); + for(i = 0; i < n; ++i) + fputs(fh, strcat("#cvar_purechange ", argv(i), "\n")); for(i = WEP_FIRST; i <= WEP_LAST; ++i) for(ibot = 0; ibot <= 1; ++ibot) for(j = WEP_FIRST; j <= WEP_LAST; ++j) for(jbot = 0; jbot <= 1; ++jbot) { -- 2.39.2