From: MirceaKitsune Date: Sat, 4 Sep 2010 22:49:08 +0000 (+0300) Subject: Bring back the color smoothing X-Git-Url: https://de.git.xonotic.org/?a=commitdiff_plain;ds=sidebyside;h=642af3d93b13ee916a26fcf4a8cf6860b87f9347;p=voretournament%2Fvoretournament.git Bring back the color smoothing --- diff --git a/data/qcsrc/client/sbar.qc b/data/qcsrc/client/sbar.qc index cabd0a80..38a09fd9 100644 --- a/data/qcsrc/client/sbar.qc +++ b/data/qcsrc/client/sbar.qc @@ -2913,7 +2913,7 @@ void Sbar_Draw (void) stomach_status_color_y = 0; stomach_status_color_z = 0; - drawpic(bottomleft - '0 256 0', "gfx/hud/bg_stomach_status", '256 256 0', stomach_status_color, sbar_alpha_bg, DRAWFLAG_NORMAL); + drawpic(bottomleft - '0 256 0', "gfx/hud/bg_stomach_status", '256 256 0', Stomachstatus_Colortrans(stomach_status_color), sbar_alpha_bg, DRAWFLAG_NORMAL); drawstring(bottomleft - '-80 168 0', "predator:", '8 8 0', '0 0 0', sbar_alpha_fg, DRAWFLAG_NORMAL); } else @@ -2922,7 +2922,7 @@ void Sbar_Draw (void) stomach_status_color_y = bound(0.25, vlen(color), 1); // reflect HUD background brightness, but only up to a certain limit (so the color is still visible with black HUD) stomach_status_color_z = 0; - drawpic(bottomleft - '0 256 0', "gfx/hud/bg_stomach_status", '256 256 0', stomach_status_color, sbar_alpha_bg, DRAWFLAG_NORMAL); + drawpic(bottomleft - '0 256 0', "gfx/hud/bg_stomach_status", '256 256 0', Stomachstatus_Colortrans(stomach_status_color), sbar_alpha_bg, DRAWFLAG_NORMAL); drawstring(bottomleft - '-80 168 0', "self:", '8 8 0', '0 0 0', sbar_alpha_fg, DRAWFLAG_NORMAL); } }