1
0
Fork 0
forked from fte/fteqw

Slightly less weird console histories.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3400 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2009-10-06 23:37:05 +00:00
parent 546734610c
commit 7184ac46d1

View file

@ -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;
}