mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-27 06:13:01 +00:00
Don't look for colors past win32 input line length
This commit is contained in:
parent
768083b46f
commit
daa9619913
1 changed files with 5 additions and 3 deletions
|
@ -194,12 +194,14 @@ static void CON_Show( void )
|
||||||
|
|
||||||
// build a space-padded CHAR_INFO array
|
// build a space-padded CHAR_INFO array
|
||||||
for( i = 0; i < MAX_EDIT_LINE; i++ )
|
for( i = 0; i < MAX_EDIT_LINE; i++ )
|
||||||
|
{
|
||||||
|
if( i < qconsole_linelen )
|
||||||
{
|
{
|
||||||
if( Q_IsColorString( qconsole_line + i ) )
|
if( Q_IsColorString( qconsole_line + i ) )
|
||||||
attrib = CON_ColorCharToAttrib( *( qconsole_line + i + 1 ) );
|
attrib = CON_ColorCharToAttrib( *( qconsole_line + i + 1 ) );
|
||||||
|
|
||||||
if( i < qconsole_linelen )
|
|
||||||
line[ i ].Char.AsciiChar = qconsole_line[ i ];
|
line[ i ].Char.AsciiChar = qconsole_line[ i ];
|
||||||
|
}
|
||||||
else
|
else
|
||||||
line[ i ].Char.AsciiChar = ' ';
|
line[ i ].Char.AsciiChar = ' ';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue