@ -104,14 +104,14 @@ inline int TextMessageDrawChar( int x, int y, int number, int r, int g, in
@@ -104,14 +104,14 @@ inline int TextMessageDrawChar( int x, int y, int number, int r, int g, in
inline int DrawConsoleString ( int x , int y , const char * string )
{
if ( hud_textmode - > value = = 1 )
return gHUD . DrawHudString ( x , y , 9999 , ( char * ) string , 255 * g_hud_text_color [ 0 ] , 255 * g_hud_text_color [ 1 ] , 255 * g_hud_text_color [ 2 ] ) ;
return gHUD . DrawHudString ( x , y , 9999 , ( char * ) string , ( int ) ( 255.0 * g_hud_text_color [ 0 ] ) , ( int ) ( 255.0 * g_hud_text_color [ 1 ] ) , ( int ) ( 255.0 * g_hud_text_color [ 2 ] ) ) ;
return gEngfuncs . pfnDrawConsoleString ( x , y , ( char * ) string ) ;
}
inline void GetConsoleStringSize ( const char * string , int * width , int * height )
{
if ( hud_textmode - > value = = 1 )
* height = 13 , * width = gHUD . DrawHudStringLen ( string ) ;
* height = 13 , * width = gHUD . DrawHudStringLen ( ( char * ) string ) ;
else
gEngfuncs . pfnDrawConsoleStringLen ( ( char * ) string , width , height ) ;
}