From: Rudolf Polzer Date: Tue, 17 May 2011 19:03:07 +0000 (+0200) Subject: fix playerstats hashkey sending X-Git-Tag: xonotic-v0.5.0~237 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=dc485bee4d129b3582ec121f5f499010c13fc269;p=xonotic%2Fxonotic-data.pk3dir.git fix playerstats hashkey sending --- diff --git a/qcsrc/server/cl_client.qc b/qcsrc/server/cl_client.qc index e7acd7f8c..561b755c9 100644 --- a/qcsrc/server/cl_client.qc +++ b/qcsrc/server/cl_client.qc @@ -1770,8 +1770,6 @@ void ClientConnect (void) set_dom_state(self); CheatInitClient(); - - PlayerStats_AddPlayer(self); } /* diff --git a/qcsrc/server/miscfunctions.qc b/qcsrc/server/miscfunctions.qc index fa05d7163..6622dea1f 100644 --- a/qcsrc/server/miscfunctions.qc +++ b/qcsrc/server/miscfunctions.qc @@ -617,6 +617,8 @@ void GetCvars(float f) { if (s == "cl_weaponpriority") self.switchweapon = w_getbestweapon(self); + if (s == "cl_allow_uidtracking") + PlayerStats_AddPlayer(self); } }