From: terencehill Date: Sat, 19 Dec 2015 22:10:18 +0000 (+0100) Subject: hud_shownames optimization: fade out team mate waypoints too when off screen X-Git-Tag: xonotic-v0.8.2~1472^2~2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=cc66ae30eff08bee6fb5245b5ce3d480cad8890a;p=xonotic%2Fxonotic-data.pk3dir.git hud_shownames optimization: fade out team mate waypoints too when off screen --- 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