Merge branch 'fix-command-line-input' into 'next'

Fix input via command line/terminal not working

See merge request STJr/SRB2!2296
This commit is contained in:
Alam Ed Arias 2024-02-14 17:26:45 +00:00
commit dfd47733e2
2 changed files with 2 additions and 1 deletions

View file

@ -1339,6 +1339,8 @@ boolean CON_Responder(event_t *ev)
if (input_sel != input_cur)
CON_InputDelSelection();
if (ev->type == ev_console)
CON_InputAddChar(key);
return true;
}

View file

@ -652,7 +652,6 @@ void I_GetConsoleEvents(void)
else if (tty_con.cursor < sizeof (tty_con.buffer))
{
// push regular character
ev.type = ev_text;
ev.key = tty_con.buffer[tty_con.cursor] = key;
tty_con.cursor++;
// print the current line (this is differential)