From 703cec74e796e06167009ebbe70afb07f827d1dc Mon Sep 17 00:00:00 2001 From: Daniel Gibson Date: Sat, 30 Jan 2016 18:43:32 +0100 Subject: [PATCH] Fix fix for not sending Char_Event to console when not opened turns out the if the console is opened while no game is currently running, cls.key_dest is not key_console but still key_game. Changing it to key_console in those cases blows up in interesting ways. So in Char_Event() we send events to the console in those cases. --- src/client/cl_keyboard.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/client/cl_keyboard.c b/src/client/cl_keyboard.c index 95b83770..c0819246 100644 --- a/src/client/cl_keyboard.c +++ b/src/client/cl_keyboard.c @@ -970,7 +970,14 @@ Char_Event(int key) Key_Console(key); break; - default: /* incl. key_game */ + /* Console is really open but key_dest is game anyway (not connected) */ + case key_game: + if(cls.state == ca_disconnected || cls.state == ca_connecting) + Key_Console(key); + + break; + + default: break; } }