]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
hud_shownames optimization: fade out team mate waypoints too when off screen
authorterencehill <piuntn@gmail.com>
Sat, 19 Dec 2015 22:10:18 +0000 (23:10 +0100)
committerterencehill <piuntn@gmail.com>
Sat, 19 Dec 2015 22:10:18 +0000 (23:10 +0100)
qcsrc/client/shownames.qc

index 66f313d3a2fad3aba0ed8904d72aff70013b6b8d..6897dad48823ed4c52e31d83346b72deb22019d2 100644 (file)
@@ -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