mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
engine: Fix input_completion buffer comparison
Fixes: 4b771701 ("engine: add con_showcompletion feature from FTEQW")
This commit is contained in:
@@ -1712,7 +1712,7 @@ static void Con_DrawInput( int lines )
|
||||
}
|
||||
|
||||
// Con_CompleteCommand destroys the buffer. Need to figure out how to make it append only
|
||||
if( con.input_completion.buffer > len && !Q_strncmp( con.input.buffer, con.input_completion.buffer, len ))
|
||||
if( Q_strlen(con.input_completion.buffer) > len && !Q_strncmp( con.input.buffer, con.input_completion.buffer, len ))
|
||||
{
|
||||
con.input_completion.scroll = len;
|
||||
Field_DrawInputLine( con.curFont->charWidths[' ']*2 + x, y, &con.input_completion, 128, false );
|
||||
|
||||
Reference in New Issue
Block a user