]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
small fix
authorFruitieX <fruitiex@gmail.com>
Wed, 13 Apr 2011 13:22:48 +0000 (16:22 +0300)
committerFruitieX <fruitiex@gmail.com>
Wed, 13 Apr 2011 13:22:48 +0000 (16:22 +0300)
qcsrc/client/shownames.qc

index b1e971f3538156f9dc9d63eddd36e7cbde1e832e..61ae8452cf515d36ed1796b6daf6209e18a7c892 100644 (file)
@@ -39,7 +39,9 @@ void Draw_ShowNames()
         // otherwise, increase alpha until 1
 
         float a;
-        a = autocvar_hud_panel_fg_alpha * self.alpha;
+        a = autocvar_hud_panel_fg_alpha;
+        if(self.alpha)
+            a *= self.alpha;
 
         // draw the sprite image
         vector o;