From: FruitieX Date: Tue, 30 Nov 2010 11:44:02 +0000 (+0200) Subject: check if cl_allow_uid2name == 1 (it's -1 at first...) X-Git-Tag: xonotic-v0.1.0preview~80^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1122b2b962d5a3ee54b2157ce571ab2c0ae3656c;p=xonotic%2Fxonotic-data.pk3dir.git check if cl_allow_uid2name == 1 (it's -1 at first...) --- diff --git a/qcsrc/server/cl_client.qc b/qcsrc/server/cl_client.qc index 68f699f37..30bbc06a3 100644 --- a/qcsrc/server/cl_client.qc +++ b/qcsrc/server/cl_client.qc @@ -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)); diff --git a/qcsrc/server/playerstats.qc b/qcsrc/server/playerstats.qc index 7da57f2c2..9a076338e 100644 --- a/qcsrc/server/playerstats.qc +++ b/qcsrc/server/playerstats.qc @@ -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); }