mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 14:42:13 +00:00
Fix cl_chatmode 1, and allow autorepeats on everything.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2202 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
ae586b599a
commit
961b474e73
1 changed files with 3 additions and 1 deletions
|
@ -362,7 +362,7 @@ void Con_ExecuteLine(console_t *con, char *line)
|
|||
con_commandmatch=1;
|
||||
if (line[0] == '\\' || line[0] == '/')
|
||||
Cbuf_AddText (line+1, RESTRICT_LOCAL); // skip the >
|
||||
else if (cl_chatmode.value && Cmd_IsCommand(line))
|
||||
else if (cl_chatmode.value == 2 && Cmd_IsCommand(line))
|
||||
Cbuf_AddText (line, RESTRICT_LOCAL); // valid command
|
||||
#ifdef Q2CLIENT
|
||||
else if (cls.protocol == CP_QUAKE2)
|
||||
|
@ -1424,6 +1424,7 @@ void Key_Event (int key, qboolean down)
|
|||
if (down)
|
||||
{
|
||||
key_repeats[key]++;
|
||||
/*
|
||||
if (key != K_BACKSPACE
|
||||
&& key != K_DEL
|
||||
&& key != K_PAUSE
|
||||
|
@ -1435,6 +1436,7 @@ void Key_Event (int key, qboolean down)
|
|||
&& key != K_DOWNARROW
|
||||
&& key_repeats[key] > 1)
|
||||
return; // ignore most autorepeats
|
||||
*/
|
||||
|
||||
// if (key >= 200 && !keybindings[key]) //is this too annoying?
|
||||
// Con_Printf ("%s is unbound, hit F4 to set.\n", Key_KeynumToString (key) );
|
||||
|
|
Loading…
Reference in a new issue