]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Bring back the color smoothing
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 4 Sep 2010 22:49:08 +0000 (01:49 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 4 Sep 2010 22:49:08 +0000 (01:49 +0300)
data/qcsrc/client/sbar.qc

index cabd0a807e9482405e6b482d0ac42a7624da0560..38a09fd9ec1ba26be448aefebb13eb2f78bf3ecf 100644 (file)
@@ -2913,7 +2913,7 @@ void Sbar_Draw (void)
                                stomach_status_color_y = 0;\r
                                stomach_status_color_z = 0;\r
 \r
-                               drawpic(bottomleft - '0 256 0', "gfx/hud/bg_stomach_status", '256 256 0', stomach_status_color, sbar_alpha_bg, DRAWFLAG_NORMAL);\r
+                               drawpic(bottomleft - '0 256 0', "gfx/hud/bg_stomach_status", '256 256 0', Stomachstatus_Colortrans(stomach_status_color), sbar_alpha_bg, DRAWFLAG_NORMAL);\r
                                drawstring(bottomleft - '-80 168 0', "predator:", '8 8 0', '0 0 0', sbar_alpha_fg, DRAWFLAG_NORMAL);\r
                        }\r
                        else\r
@@ -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)\r
                                stomach_status_color_z = 0;\r
 \r
-                               drawpic(bottomleft - '0 256 0', "gfx/hud/bg_stomach_status", '256 256 0', stomach_status_color, sbar_alpha_bg, DRAWFLAG_NORMAL);\r
+                               drawpic(bottomleft - '0 256 0', "gfx/hud/bg_stomach_status", '256 256 0', Stomachstatus_Colortrans(stomach_status_color), sbar_alpha_bg, DRAWFLAG_NORMAL);\r
                                drawstring(bottomleft - '-80 168 0', "self:", '8 8 0', '0 0 0', sbar_alpha_fg, DRAWFLAG_NORMAL);\r
                        }\r
                }\r