|
|
@ -990,11 +990,14 @@ void GAME_EXPORT Con_DrawStringLen( const char *pText, int *length, int *height |
|
|
|
{ |
|
|
|
{ |
|
|
|
int curLength = 0; |
|
|
|
int curLength = 0; |
|
|
|
|
|
|
|
|
|
|
|
if( !length ) return; |
|
|
|
if( !con.curFont ) |
|
|
|
*length = 0; |
|
|
|
return; |
|
|
|
|
|
|
|
if( height ) |
|
|
|
|
|
|
|
*height = con.curFont->charHeight; |
|
|
|
|
|
|
|
if (!length) |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
if( !con.curFont ) return; |
|
|
|
*length = 0; |
|
|
|
if( height ) *height = con.curFont->charHeight; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
while( *pText ) |
|
|
|
while( *pText ) |
|
|
|
{ |
|
|
|
{ |
|
|
|