From cb4203a35baf83387ccff2c0ec692ab664ca7ca2 Mon Sep 17 00:00:00 2001 From: FruitieX Date: Thu, 24 Jun 2010 22:14:23 +0300 Subject: [PATCH] skip drawing progressbar (or any calculations belonging to that) if alpha is 0 --- qcsrc/client/hud.qc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index 6babd8dd5..ccf52e987 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -877,7 +877,9 @@ void HUD_Panel_DrawBg(float id, vector pos, vector mySize, float alpha) void HUD_Panel_DrawProgressBar(vector pos, float vertical, vector mySize, vector color, float alpha, float drawflag) { -//float drawsubpic(vector position, vector size, string pic, vector srcPosition, vector srcSize, vector rgb, float alpha, float flag) = #328; + if(!alpha) + return; + string pic; pic = strcat("gfx/hud/", cvar_string("hud_skin"), "/"); if(vertical) { -- 2.39.2