]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix playerstats hashkey sending
authorRudolf Polzer <divverent@xonotic.org>
Tue, 17 May 2011 19:03:07 +0000 (21:03 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Tue, 17 May 2011 19:03:07 +0000 (21:03 +0200)
qcsrc/server/cl_client.qc
qcsrc/server/miscfunctions.qc

index e7acd7f8c91b39f5f46961122e6146bd2d364182..561b755c9694b9d2ff05f95fc946dfbd7df31256 100644 (file)
@@ -1770,8 +1770,6 @@ void ClientConnect (void)
                set_dom_state(self);
 
        CheatInitClient();
-
-       PlayerStats_AddPlayer(self);
 }
 
 /*
index fa05d7163e6e6120e1b3b17c1934611e5d27cc8b..6622dea1ff5c6ca9c8cbce3b7114252cb9136ffd 100644 (file)
@@ -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);
        }
 }