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:
Spoike 2006-04-14 01:52:15 +00:00
parent ae586b599a
commit 961b474e73

View file

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