From: FruitieX Date: Thu, 24 Jun 2010 19:14:23 +0000 (+0300) Subject: skip drawing progressbar (or any calculations belonging to that) if alpha is 0 X-Git-Tag: xonotic-v0.1.0preview~457^2~82 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=cb4203a35baf83387ccff2c0ec692ab664ca7ca2;p=xonotic%2Fxonotic-data.pk3dir.git skip drawing progressbar (or any calculations belonging to that) if alpha is 0 --- 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) {