|
|
@ -281,9 +281,12 @@ void CHudMessage::MessageDrawScan( client_textmessage_t *pMessage, float time ) |
|
|
|
while( *pText && *pText != '\n' ) |
|
|
|
while( *pText && *pText != '\n' ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
unsigned char c = *pText; |
|
|
|
unsigned char c = *pText; |
|
|
|
line[m_parms.lineLength] = c; |
|
|
|
if (m_parms.lineLength < sizeof(line)-1) |
|
|
|
m_parms.width += gHUD.m_scrinfo.charWidths[c]; |
|
|
|
{ |
|
|
|
m_parms.lineLength++; |
|
|
|
line[m_parms.lineLength] = c; |
|
|
|
|
|
|
|
m_parms.width += gHUD.m_scrinfo.charWidths[c]; |
|
|
|
|
|
|
|
m_parms.lineLength++; |
|
|
|
|
|
|
|
} |
|
|
|
pText++; |
|
|
|
pText++; |
|
|
|
} |
|
|
|
} |
|
|
|
pText++; // Skip LF
|
|
|
|
pText++; // Skip LF
|
|
|
|