From 961b474e734cfb9ec923c618c4268e132670e4ff Mon Sep 17 00:00:00 2001 From: Spoike Date: Fri, 14 Apr 2006 01:52:15 +0000 Subject: [PATCH] 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 --- engine/client/keys.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/engine/client/keys.c b/engine/client/keys.c index 8a2f4c906..d0eb1ff1e 100644 --- a/engine/client/keys.c +++ b/engine/client/keys.c @@ -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) );