diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-04-05 11:56:37 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-04-05 11:56:37 +0000 |
| commit | fabdd7b2dce4b99737cfb868d258cf49abcff893 (patch) | |
| tree | 3be205cee6c0f63219ccfc7d7f99b43ab3c72050 | |
| parent | 1de453aa2a637f8c850edf4a4cb0221b8b904402 (diff) | |
| download | zcatch-fabdd7b2dce4b99737cfb868d258cf49abcff893.tar.gz zcatch-fabdd7b2dce4b99737cfb868d258cf49abcff893.zip | |
fixed input problem, partly :)
| -rw-r--r-- | src/game/client/gc_console.cpp | 4 |
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; |