From 7184ac46d17c44e2b92533fc54e89acf379becc5 Mon Sep 17 00:00:00 2001 From: Spoike Date: Tue, 6 Oct 2009 23:37:05 +0000 Subject: [PATCH] Slightly less weird console histories. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3400 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/keys.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/engine/client/keys.c b/engine/client/keys.c index cabe9cec..3b8a53dc 100644 --- a/engine/client/keys.c +++ b/engine/client/keys.c @@ -643,6 +643,7 @@ void Key_Console (unsigned int unicode, int key) if (history_line == edit_line) { key_lines[edit_line][0] = ']'; + key_lines[edit_line][1] = '\0'; key_linepos = 1; } else @@ -1298,7 +1299,7 @@ qboolean Key_MouseShouldBeFree(void) //returns if the mouse should be a cursor or if it should go to the menu //if true, the input code is expected to return mouse cursor positions rather than deltas - + extern cvar_t cl_prydoncursor; extern int mouseusedforgui; // if (mouseusedforgui) //I don't like this // return true; @@ -1313,9 +1314,11 @@ qboolean Key_MouseShouldBeFree(void) #ifdef VM_UI if (UI_MenuState()) - return true; + return false; #endif + if (cl_prydoncursor.ival) + return true; return false; }