]> git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Make stomach capacity twice brighter than health / armor colors, to not be confusing
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 18 Jul 2011 20:02:11 +0000 (23:02 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 18 Jul 2011 20:02:11 +0000 (23:02 +0300)
data/qcsrc/client/sbar.qc

index deecd121d76665def44f64f95d19020912ca9a24..cb5c184e9fcac1e2afc6459eb09ed18858837d98 100644 (file)
@@ -3034,7 +3034,7 @@ void Sbar_Draw (void)
                        vector status_pos;\r
                        string status_text, status_color;\r
                        float status_size;\r
-                       status_color = rgb_to_hexcolor(Sbar_NumColor(stomach_maxload));\r
+                       status_color = rgb_to_hexcolor('0.5 0.5 0.5' + Sbar_NumColor(stomach_maxload) * 0.5); // twice brighter than health / armor colors\r
                        if(stomach_load)\r
                        {\r
                                status_text = strcat(ftos(stomach_load), "^8/", status_color, ftos(stomach_maxload), "%");\r