From 768083b46f3fd76f9d8cc6d66f221612ec2ed933 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Wed, 9 Jan 2013 15:21:44 -0600 Subject: [PATCH] Fix win32 dedicated input line printing to backlog Use to write win32 input line using WriteConsole then overwrite by CON_Print, so when CON_Print removes color format characters the end of original input line was visable. "hi ^1guys" use to be shown as "hi guysys" in the console backlog. --- code/sys/con_win32.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/sys/con_win32.c b/code/sys/con_win32.c index b9b2199d..3abcfdf2 100644 --- a/code/sys/con_win32.c +++ b/code/sys/con_win32.c @@ -383,12 +383,12 @@ char *CON_Input( void ) return NULL; } - CON_HistAdd(); - Com_Printf( "%s\n", qconsole_line ); - qconsole_linelen = 0; CON_Show(); + CON_HistAdd(); + Com_Printf( "%s\n", qconsole_line ); + return qconsole_line; }