From: Mario Date: Tue, 12 Jul 2016 12:42:05 +0000 (+1000) Subject: Use the real player entity for shownames self checks (fixes player name appearing... X-Git-Tag: xonotic-v0.8.2~700^2~81 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=79ac16b4fa8de57c87c07b89999e7803e528e3f0;p=xonotic%2Fxonotic-data.pk3dir.git Use the real player entity for shownames self checks (fixes player name appearing in 3rd person vehicles) --- diff --git a/qcsrc/client/shownames.qc b/qcsrc/client/shownames.qc index 6700ba61c..165b033fb 100644 --- a/qcsrc/client/shownames.qc +++ b/qcsrc/client/shownames.qc @@ -34,7 +34,7 @@ const float SHOWNAMES_FADESPEED = 4; const float SHOWNAMES_FADEDELAY = 0.4; void Draw_ShowNames(entity this) { - if (this.sv_entnum == player_localentnum) // self or spectatee + if (this.sv_entnum == (current_player + 1)) // self or spectatee if (!(autocvar_hud_shownames_self && autocvar_chase_active)) return; if (!this.sameteam && !autocvar_hud_shownames_enemies) return; bool hit;