summaryrefslogtreecommitdiff
path: root/src/cgame
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2001-06-21 02:38:10 +0000
committerTim Angus <tim@ngus.net>2001-06-21 02:38:10 +0000
commit4922e88c22f07d626b0d3fe3b2fc5bd014cac321 (patch)
treef5ef46f9a618882c48181a9a9f3d7a2e4382f4fd /src/cgame
parentead0a752228fc74e748fb4d4bbd43c5399481faa (diff)
Upgrades now cost material.
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;