From f8f80b9a0824516af861a2c9bdb5389aa86764f0 Mon Sep 17 00:00:00 2001 From: mittorn Date: Wed, 2 Mar 2016 08:00:09 +0000 Subject: [PATCH] Do not draw black console characters --- cl_dll/ammohistory.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cl_dll/ammohistory.cpp b/cl_dll/ammohistory.cpp index bfe70058..cf3a2cf4 100644 --- a/cl_dll/ammohistory.cpp +++ b/cl_dll/ammohistory.cpp @@ -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 ) {