check if cl_allow_uid2name == 1 (it's -1 at first...)
authorFruitieX <fruitiex@gmail.com>
Tue, 30 Nov 2010 11:44:02 +0000 (13:44 +0200)
committerFruitieX <fruitiex@gmail.com>
Tue, 30 Nov 2010 11:44:02 +0000 (13:44 +0200)
qcsrc/server/cl_client.qc
qcsrc/server/playerstats.qc

index 68f699f..30bbc06 100644 (file)
@@ -3055,7 +3055,7 @@ void PlayerPostThink (void)
 
        playerdemo_write();
 
-       if((g_cts || g_race) && self.cvar_cl_allow_uid2name)
+       if((g_cts || g_race) && self.cvar_cl_allow_uid2name == 1)
        {
                if(!self.stored_netname)
                        self.stored_netname = strzone(uid2name(self.crypto_idfp));
index 7da57f2..9a07633 100644 (file)
@@ -149,6 +149,6 @@ void PlayerStats_AddGlobalInfo(entity p)
        if(p.alivetime)
                PlayerStats_Event(p, PLAYERSTATS_ALIVETIME, time - p.alivetime);
        
-       if(p.cvar_cl_allow_uid2name)
+       if(p.cvar_cl_allow_uid2name == 1)
                db_put(playerstats_db, sprintf("%s:_netname", p.crypto_idfp), p.netname);
 }