Do not draw black console characters

This commit is contained in:
mittorn 2016-03-02 08:00:09 +00:00
parent d254f1bd0e
commit f8f80b9a08
1 changed files with 4 additions and 2 deletions

View File

@ -137,8 +137,10 @@ int HistoryResource :: DrawAmmoHistory( float flTime )
SPR_DrawAdditive( 0, xpos, ypos, &rcPic );
}
// Draw the number
gHUD.DrawHudNumberString( xpos - 10, ypos, xpos - 100, rgAmmoHistory[i].iCount, r, g, b );
// do not draw black console string
if( !(( hud_textmode->value == 2 ) && ( scale < 200 )) )
// Draw the number
gHUD.DrawHudNumberString( xpos - 10, ypos, xpos - 100, rgAmmoHistory[i].iCount, r, g, b );
}
else if ( rgAmmoHistory[i].type == HISTSLOT_WEAP )
{