From c24682b923c47083bfd83c7fd929f162c5b24f3b Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Mon, 7 May 2001 16:09:41 +0000 Subject: No weapon handled better. --- src/cgame/cg_draw.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src/cgame/cg_draw.c') diff --git a/src/cgame/cg_draw.c b/src/cgame/cg_draw.c index 1c2067ca..a265a329 100644 --- a/src/cgame/cg_draw.c +++ b/src/cgame/cg_draw.c @@ -2119,19 +2119,21 @@ static void CG_DrawAmmoWarning( void ) { const char *s; int w; - if ( cg_drawAmmoWarning.integer == 0 ) { + //TA: hack + if( cg.snap->ps.weapon == WP_NONE ) + return; + + if ( cg_drawAmmoWarning.integer == 0 ) return; - } - if ( !cg.lowAmmoWarning ) { + if ( !cg.lowAmmoWarning ) return; - } - if ( cg.lowAmmoWarning == 2 ) { + if ( cg.lowAmmoWarning == 2 ) s = "OUT OF AMMO"; - } else { + else s = "LOW AMMO WARNING"; - } + w = CG_DrawStrlen( s ) * BIGCHAR_WIDTH; CG_DrawBigString(320 - w / 2, 64, s, 1.0F); } -- cgit