From: FruitieX Date: Mon, 11 Apr 2011 18:57:45 +0000 (+0300) Subject: yay origins and player ids printed correctly now (lol trolled samual) X-Git-Tag: xonotic-v0.5.0~300 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=46baa5904a0359f5b383138da1da53146d3f67af;p=xonotic%2Fxonotic-data.pk3dir.git yay origins and player ids printed correctly now (lol trolled samual) --- diff --git a/qcsrc/server/cl_client.qc b/qcsrc/server/cl_client.qc index 59baea3c31..4f327176c1 100644 --- a/qcsrc/server/cl_client.qc +++ b/qcsrc/server/cl_client.qc @@ -1760,6 +1760,7 @@ void ClientConnect (void) self.shownames = spawn(); self.shownames.owner = self; self.shownames.think = shownames_think; + self.shownames.nextthink = time; Net_LinkEntity(self.shownames, FALSE, 0, SendEntity_ShowNames); } diff --git a/qcsrc/server/cl_player.qc b/qcsrc/server/cl_player.qc index 3f6b0ca4b4..85e557c963 100644 --- a/qcsrc/server/cl_player.qc +++ b/qcsrc/server/cl_player.qc @@ -773,8 +773,9 @@ void shownames_think() } if(self.the_entnum != num_for_edict(self.owner)) { - self.the_entnum = num_for_edict(self); + self.the_entnum = num_for_edict(self.owner); } + self.nextthink = time; } .float muted; // to be used by prvm_edictset server playernumber muted 1