From 67c0b325ec50695b05f09ab72e18198da7014289 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Sun, 21 Jan 2024 16:58:58 -0600 Subject: [PATCH] Don't draw ammo HUD background in race with no weapon --- engine/code/cgame/cg_draw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/code/cgame/cg_draw.c b/engine/code/cgame/cg_draw.c index 5c82708a..f2a5cf12 100644 --- a/engine/code/cgame/cg_draw.c +++ b/engine/code/cgame/cg_draw.c @@ -785,7 +785,7 @@ static void CG_DrawRallyStatusBar( void ) { // draw ammo background value = ps->ammo[cent->currentState.weapon]; - if ( value > -1 ) + if ( cent->currentState.weapon && value > -1 ) CG_FillRect( 20, 476 - 30, 90, 24, bg_color ); // health background