resetting the search line index when clearing the console

This commit is contained in:
myT 2022-04-30 18:53:36 +02:00
parent 533e0872c1
commit 83284b15c5

View file

@ -104,7 +104,7 @@ struct console_t {
float helpXAdjust;
char searchPattern[256];
qbool searchLineIndex;
int searchLineIndex;
qbool searchStarted;
qbool markMode;
@ -289,15 +289,14 @@ void Con_MessageMode4_f (void) {
static void Con_Clear_f( void )
{
int i;
for ( i = 0 ; i < CON_TEXTSIZE ; i++ ) {
for ( int i = 0 ; i < CON_TEXTSIZE ; i++ ) {
con.text[i] = (COLOR_WHITE << 8) | ' ';
}
con.current = con.totallines - 1;
Con_Bottom();
con.searchLineIndex = INT_MIN;
}