Skip to content

Commit

Permalink
[Shared] Draw console prompt even when renderer cmd queue overflows f…
Browse files Browse the repository at this point in the history
…rom too much text.

mvdevs/jk2mv@634e5b2
  • Loading branch information
Daggolin committed Nov 9, 2023
1 parent c007dfd commit ec944bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions code/client/cl_console.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,9 @@ void Con_DrawSolidConsole( float frac )
(lines-(SMALLCHAR_HEIGHT+SMALLCHAR_HEIGHT/2)), Q3_VERSION[x] );
}

// draw the input prompt, user text, and cursor if desired
Con_DrawInput ();

// draw the text
con.vislines = lines;
rows = (lines-SMALLCHAR_WIDTH)/SMALLCHAR_WIDTH; // rows of text to draw
Expand Down Expand Up @@ -665,9 +668,6 @@ void Con_DrawSolidConsole( float frac )
}
}

// draw the input prompt, user text, and cursor if desired
Con_DrawInput ();

re.SetColor( NULL );
}

Expand Down
5 changes: 2 additions & 3 deletions codemp/client/cl_console.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -745,6 +745,8 @@ void Con_DrawSolidConsole( float frac ) {
(lines-(SMALLCHAR_HEIGHT+SMALLCHAR_HEIGHT/2)), JK_VERSION[x] );
}

// draw the input prompt, user text, and cursor if desired
Con_DrawInput ();

// draw the text
con.vislines = lines;
Expand Down Expand Up @@ -833,9 +835,6 @@ void Con_DrawSolidConsole( float frac ) {
}
}

// draw the input prompt, user text, and cursor if desired
Con_DrawInput ();

re->SetColor( NULL );
}

Expand Down

0 comments on commit ec944bb

Please sign in to comment.