Don't draw ammo HUD background in race with no weapon

This commit is contained in:
Zack Middleton 2024-01-21 16:58:58 -06:00
parent f5cfbf2269
commit 67c0b325ec

View file

@ -785,7 +785,7 @@ static void CG_DrawRallyStatusBar( void ) {
// draw ammo background // draw ammo background
value = ps->ammo[cent->currentState.weapon]; value = ps->ammo[cent->currentState.weapon];
if ( value > -1 ) if ( cent->currentState.weapon && value > -1 )
CG_FillRect( 20, 476 - 30, 90, 24, bg_color ); CG_FillRect( 20, 476 - 30, 90, 24, bg_color );
// health background // health background