]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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 68f699f3711b7cc4d3250a5dd5c755c29cc753d6..30bbc06a3ff4ee348bfba5492859e0b606d7cf2e 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 7da57f2c23102dc26ca4e73af96cce7387940e21..9a076338e632a32fcd5e89b4baed98a78cf82684 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);
 }