summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2007-09-16 00:27:26 +0000
committerTim Angus <tim@ngus.net>2007-09-16 00:27:26 +0000
commit9c550fc288439b843fa020d8243f0354df41068e (patch)
treeaacbba1484d37aa41ac67d844eab3b42c13b0cfe /src/client
parent83462a8f3d14961da8e0c47dc66723ef05abdac1 (diff)
* (bug 2758) Reset key states when in a keycatching
Diffstat (limited to 'src/client')
-rw-r--r--src/client/cl_console.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/cl_console.c b/src/client/cl_console.c
index 308abd07..14bc65be 100644
--- a/src/client/cl_console.c
+++ b/src/client/cl_console.c
@@ -639,6 +639,10 @@ Scroll it up or down
==================
*/
void Con_RunConsole (void) {
+ // Don't allow any key states at all when keycatching
+ if ( cls.keyCatchers != 0 )
+ Key_ClearStates( );
+
// decide on the destination height of the console
if ( cls.keyCatchers & KEYCATCH_CONSOLE )
con.finalFrac = 0.5; // half screen