]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix armor bar being 2x too wide
authorFruitieX <fruitiex@gmail.com>
Sat, 14 May 2011 19:57:20 +0000 (22:57 +0300)
committerFruitieX <fruitiex@gmail.com>
Sat, 14 May 2011 19:57:20 +0000 (22:57 +0300)
qcsrc/client/shownames.qc

index caf99d55cd65b6acebe46cd5841910f1e9543b14..76c190415b7eca3000e665ac33bd69ad11dc9969 100644 (file)
@@ -118,7 +118,7 @@ void Draw_ShowNames()
                         HUD_Panel_DrawProgressBar(namepos + '0 1 0' * autocvar_hud_shownames_fontsize * resize, eX * 0.5 * mySize_x + eY * resize * autocvar_hud_shownames_statusbar_height, "nametag_statusbar", self.healthvalue/autocvar_hud_panel_healtharmor_maxhealth, 0, 1, '1 0 0', a, DRAWFLAG_NORMAL);
 
                         if(self.armorvalue > 0)
-                            HUD_Panel_DrawProgressBar(namepos + '0 1 0' * autocvar_hud_shownames_fontsize * resize + eX * 0.5 * mySize_x, eX * mySize_x + eY * resize * autocvar_hud_shownames_statusbar_height, "nametag_statusbar", self.armorvalue/autocvar_hud_panel_healtharmor_maxarmor, 0, 0, '0 1 0', a, DRAWFLAG_NORMAL);
+                            HUD_Panel_DrawProgressBar(namepos + '0 1 0' * autocvar_hud_shownames_fontsize * resize + eX * 0.5 * mySize_x, eX * 0.5 * mySize_x + eY * resize * autocvar_hud_shownames_statusbar_height, "nametag_statusbar", self.armorvalue/autocvar_hud_panel_healtharmor_maxarmor, 0, 0, '0 1 0', a, DRAWFLAG_NORMAL);
                     }
                 }
             }