summaryrefslogtreecommitdiff
path: root/src/cgame/cg_main.c
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2015-04-04 12:33:20 +0200
committerPaweł Redman <pawel.redman@gmail.com>2015-04-04 12:33:20 +0200
commiteb30895efbad7f5f1ca5d943dbe87ebcd3502fa3 (patch)
tree45979666162f6a1177320d7c28ecf452746c7ad1 /src/cgame/cg_main.c
parentf3008f9819d57b671a424a0097f50c93926af74e (diff)
Improve numbers_alt, make health bars' colors change depending on the health, make health bars not appear on entities with 100% health.
Diffstat (limited to 'src/cgame/cg_main.c')
-rw-r--r--src/cgame/cg_main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cgame/cg_main.c b/src/cgame/cg_main.c
index 0fdb028..9e51258 100644
--- a/src/cgame/cg_main.c
+++ b/src/cgame/cg_main.c
@@ -781,7 +781,7 @@ static void CG_RegisterGraphics( void )
"gfx/2d/numbers/nine_32b",
"gfx/2d/numbers/minus_32b",
};
- static char *sb_nums_alt[ 11 ] =
+ static char *sb_nums_alt[ 12 ] =
{
"gfx/2d/numbers_alt/0",
"gfx/2d/numbers_alt/1",
@@ -794,6 +794,7 @@ static void CG_RegisterGraphics( void )
"gfx/2d/numbers_alt/8",
"gfx/2d/numbers_alt/9",
"gfx/2d/numbers_alt/minus",
+ "gfx/2d/numbers_alt/slash",
};
static char *buildWeaponTimerPieShaders[ 8 ] =
{
@@ -817,7 +818,7 @@ static void CG_RegisterGraphics( void )
for( i = 0; i < 11; i++ )
cgs.media.numberShaders[ i ] = trap_R_RegisterShader( sb_nums[ i ] );
- for( i = 0; i < 11; i++ )
+ for( i = 0; i < 12; i++ )
cgs.media.numberShadersAlt[ i ] = trap_R_RegisterShader( sb_nums_alt[ i ] );
cgs.media.viewBloodShader = trap_R_RegisterShader( "gfx/damage/fullscreen_painblend" );