diff options
author | Zack Middleton <zturtleman@gmail.com> | 2013-01-09 15:21:44 -0600 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-12 21:35:58 +0000 |
commit | eb437801c97f9c3fc28af97154cfea0d31ccf288 (patch) | |
tree | bfbdc04984a80e0ca17ae5bc125ec4f92cba12ad | |
parent | d35f6ca3dbea9576ac38a834f2b3e0152f0ff9bd (diff) |
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.
-rw-r--r-- | src/sys/con_win32.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sys/con_win32.c b/src/sys/con_win32.c index 73f62cd1..d4305837 100644 --- a/src/sys/con_win32.c +++ b/src/sys/con_win32.c @@ -384,12 +384,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; } |