mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-30 07:31:13 +00:00
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:
parent
546734610c
commit
7184ac46d1
1 changed files with 5 additions and 2 deletions
|
@ -643,6 +643,7 @@ void Key_Console (unsigned int unicode, int key)
|
||||||
if (history_line == edit_line)
|
if (history_line == edit_line)
|
||||||
{
|
{
|
||||||
key_lines[edit_line][0] = ']';
|
key_lines[edit_line][0] = ']';
|
||||||
|
key_lines[edit_line][1] = '\0';
|
||||||
key_linepos = 1;
|
key_linepos = 1;
|
||||||
}
|
}
|
||||||
else
|
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
|
//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
|
//if true, the input code is expected to return mouse cursor positions rather than deltas
|
||||||
|
extern cvar_t cl_prydoncursor;
|
||||||
extern int mouseusedforgui;
|
extern int mouseusedforgui;
|
||||||
// if (mouseusedforgui) //I don't like this
|
// if (mouseusedforgui) //I don't like this
|
||||||
// return true;
|
// return true;
|
||||||
|
@ -1313,9 +1314,11 @@ qboolean Key_MouseShouldBeFree(void)
|
||||||
|
|
||||||
#ifdef VM_UI
|
#ifdef VM_UI
|
||||||
if (UI_MenuState())
|
if (UI_MenuState())
|
||||||
return true;
|
return false;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (cl_prydoncursor.ival)
|
||||||
|
return true;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue