From 79ac16b4fa8de57c87c07b89999e7803e528e3f0 Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 12 Jul 2016 22:42:05 +1000 Subject: [PATCH] Use the real player entity for shownames self checks (fixes player name appearing in 3rd person vehicles) --- qcsrc/client/shownames.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2