From cc66ae30eff08bee6fb5245b5ce3d480cad8890a Mon Sep 17 00:00:00 2001 From: terencehill Date: Sat, 19 Dec 2015 23:10:18 +0100 Subject: [PATCH] hud_shownames optimization: fade out team mate waypoints too when off screen --- 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 66f313d3a..6897dad48 100644 --- a/qcsrc/client/shownames.qc +++ b/qcsrc/client/shownames.qc @@ -79,7 +79,7 @@ void Draw_ShowNames(entity this) { this.alpha = max(0, this.alpha - SHOWNAMES_FADESPEED * 0.25 * frametime); } - else if (!this.sameteam && (!onscreen || !hit)) // out of view, fade out + else if (!onscreen || (!this.sameteam && !hit)) // out of view, fade out { this.alpha = max(0, this.alpha - SHOWNAMES_FADESPEED * frametime); this.fadedelay = 0; // reset fade in delay, enemy has left the view -- 2.39.2