From: FruitieX Date: Sat, 14 May 2011 19:57:20 +0000 (+0300) Subject: fix armor bar being 2x too wide X-Git-Tag: xonotic-v0.5.0~252 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=cde8dddc8664268c81633a3049f1c7cf1ef95b0c;p=xonotic%2Fxonotic-data.pk3dir.git fix armor bar being 2x too wide --- diff --git a/qcsrc/client/shownames.qc b/qcsrc/client/shownames.qc index caf99d55c..76c190415 100644 --- a/qcsrc/client/shownames.qc +++ b/qcsrc/client/shownames.qc @@ -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); } } }