diff options
Diffstat (limited to 'src')
| -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; |