about summary refs log tree commit diff
path: root/src/game/client
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2008-04-05 11:56:37 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2008-04-05 11:56:37 +0000
commitfabdd7b2dce4b99737cfb868d258cf49abcff893 (patch)
tree3be205cee6c0f63219ccfc7d7f99b43ab3c72050 /src/game/client
parent1de453aa2a637f8c850edf4a4cb0221b8b904402 (diff)
downloadzcatch-fabdd7b2dce4b99737cfb868d258cf49abcff893.tar.gz
zcatch-fabdd7b2dce4b99737cfb868d258cf49abcff893.zip
fixed input problem, partly :)
Diffstat (limited to 'src/game/client')
-rw-r--r--src/game/client/gc_console.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/client/gc_console.cpp b/src/game/client/gc_console.cpp
index 91461a47..90fc8afc 100644
--- a/src/game/client/gc_console.cpp
+++ b/src/game/client/gc_console.cpp
@@ -466,6 +466,10 @@ bool console_input_special_binds(INPUT_EVENT e, void *user_data)
 
 bool console_input_normal_binds(INPUT_EVENT e, void *user_data)
 {
+	// need to be ingame for these binds
+	if(client_state() != CLIENTSTATE_ONLINE)
+		return false;
+	
 	// don't handle invalid events and keys that arn't set to anything
 	if(e.key <= 0 || e.key >= KEY_LAST || keybindings[e.key][0] == 0)
 		return false;