[nexuiz-commits] r7925 - in trunk/data: . qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sat Sep 26 10:37:55 EDT 2009
Author: div0
Date: 2009-09-26 10:37:55 -0400 (Sat, 26 Sep 2009)
New Revision: 7925
Modified:
trunk/data/defaultNexuiz.cfg
trunk/data/qcsrc/server/cl_player.qc
Log:
sv_weaponstats_*
Modified: trunk/data/defaultNexuiz.cfg
===================================================================
--- trunk/data/defaultNexuiz.cfg 2009-09-26 14:32:57 UTC (rev 7924)
+++ trunk/data/defaultNexuiz.cfg 2009-09-26 14:37:55 UTC (rev 7925)
@@ -1629,5 +1629,5 @@
set g_ghost_items 1 "enable ghosted items (when between 0 and 1, overrides the alpha value)"
-set g_weaponstats_damagefile "" "when set to a file name, per-weapon damage stats get written to that file"
-set g_weaponstats_killfile "" "when set to a file name, per-weapon kill stats get written to that file"
+set sv_weaponstats_damagefile "" "when set to a file name, per-weapon damage stats get written to that file"
+set sv_weaponstats_killfile "" "when set to a file name, per-weapon kill stats get written to that file"
Modified: trunk/data/qcsrc/server/cl_player.qc
===================================================================
--- trunk/data/qcsrc/server/cl_player.qc 2009-09-26 14:32:57 UTC (rev 7924)
+++ trunk/data/qcsrc/server/cl_player.qc 2009-09-26 14:37:55 UTC (rev 7925)
@@ -2,7 +2,7 @@
void WeaponStats_Init()
{
- if(cvar_string("g_weaponstats_killfile") != "" || cvar_string("g_weaponstats_damagefile") != "")
+ if(cvar_string("sv_weaponstats_killfile") != "" || cvar_string("sv_weaponstats_damagefile") != "")
weaponstats_buffer = buf_create();
else
weaponstats_buffer = -1;
@@ -18,9 +18,9 @@
if(weaponstats_buffer < 0)
return;
prefix = strcat(cvar_string("hostname"), "\t", GetGametype(), "_", GetMapname(), "\t");
- if(cvar_string("g_weaponstats_killfile") != "")
+ if(cvar_string("sv_weaponstats_killfile") != "")
{
- fh = fopen(cvar_string("g_weaponstats_killfile"), FILE_APPEND);
+ fh = fopen(cvar_string("sv_weaponstats_killfile"), FILE_APPEND);
if(fh >= 0)
{
fputs(fh, "#begin killfile\n");
@@ -39,9 +39,9 @@
print("Weapon kill stats written\n");
}
}
- if(cvar_string("g_weaponstats_damagefile") != "")
+ if(cvar_string("sv_weaponstats_damagefile") != "")
{
- fh = fopen(cvar_string("g_weaponstats_damagefile"), FILE_APPEND);
+ fh = fopen(cvar_string("sv_weaponstats_damagefile"), FILE_APPEND);
if(fh >= 0)
{
fputs(fh, "#begin damagefile\n");
More information about the nexuiz-commits
mailing list