summaryrefslogtreecommitdiff
path: root/src/cgame/cg_draw.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2001-05-07 16:09:41 +0000
committerTim Angus <tim@ngus.net>2001-05-07 16:09:41 +0000
commitc24682b923c47083bfd83c7fd929f162c5b24f3b (patch)
tree022305dfb436b265bf092f81882d2da2732131e1 /src/cgame/cg_draw.c
parent63c14b02a7f7e44c5ee99a999bc0477cded7cb9a (diff)
No weapon handled better.
Diffstat (limited to 'src/cgame/cg_draw.c')
-rw-r--r--src/cgame/cg_draw.c16
1 files changed, 9 insertions, 7 deletions
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);
}