summaryrefslogtreecommitdiff
path: root/src/cgame
diff options
context:
space:
mode:
Diffstat (limited to 'src/cgame')
-rw-r--r--src/cgame/cg_draw.c8
-rw-r--r--src/cgame/cg_event.c8
2 files changed, 16 insertions, 0 deletions
diff --git a/src/cgame/cg_draw.c b/src/cgame/cg_draw.c
index a265a329..90518a71 100644
--- a/src/cgame/cg_draw.c
+++ b/src/cgame/cg_draw.c
@@ -548,6 +548,9 @@ static void CG_DrawStatusBar( void ) {
int awidth = (int)( (float)allocated / ( total / PWR_WIDTH ) );
int pwidth = (int)( (float)powered / ( total / PWR_WIDTH ) );
vec4_t bcolor = { 0.5, 0.5, 0.5, 0.5 };
+
+ char *s;
+ int w;
trap_R_SetColor( bcolor ); // white
CG_DrawPic( PWR_X, PWR_Y, PWR_WIDTH, PWR_HEIGHT, cgs.media.whiteShader );
@@ -560,6 +563,11 @@ static void CG_DrawStatusBar( void ) {
trap_R_SetColor( colors[1] ); // red
CG_DrawPic( PWR_X + pwidth, PWR_Y, awidth - pwidth, PWR_HEIGHT, cgs.media.whiteShader );
}
+
+ //display amount of credit
+ s = va( "%dg", ps->stats[ STAT_CREDIT ] );
+ w = CG_DrawStrlen( s ) * BIGCHAR_WIDTH;
+ CG_DrawBigString( 635 - w, 35, s, 1.0F);
}
//
diff --git a/src/cgame/cg_event.c b/src/cgame/cg_event.c
index 822b8d1e..61a3abe0 100644
--- a/src/cgame/cg_event.c
+++ b/src/cgame/cg_event.c
@@ -506,6 +506,14 @@ void CG_Menu( int eventParm )
trap_SendConsoleCommand( "menu hnoslots\n" );
break;
+ case MN_H_NOFUNDS:
+ trap_SendConsoleCommand( "menu hnofunds\n" );
+ break;
+
+ case MN_H_ITEMHELD:
+ trap_SendConsoleCommand( "menu hitemheld\n" );
+ break;
+
case MN_D_INFEST:
trap_SendConsoleCommand( "menu dinfest\n" );
break;