From e55ba53ba7aa993279bf3f6a21b1e771fda74f1d Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Sun, 23 Sep 2007 21:00:57 +0000 Subject: fixed remote console --- src/game/client/game_client.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/game/client/game_client.cpp') diff --git a/src/game/client/game_client.cpp b/src/game/client/game_client.cpp index 178330c2..301bfdd8 100644 --- a/src/game/client/game_client.cpp +++ b/src/game/client/game_client.cpp @@ -1649,10 +1649,15 @@ void render_game() config_set(&chat_input[1]); else { - msg_pack_start(MSG_SAY, MSGFLAG_VITAL); - msg_pack_string(chat_input, 512); - msg_pack_end(); - client_send_msg(); + if(inp_key_pressed(KEY_RSHIFT) || inp_key_pressed(KEY_LSHIFT)) + client_rcon(chat_input); + else + { + msg_pack_start(MSG_SAY, MSGFLAG_VITAL); + msg_pack_string(chat_input, 512); + msg_pack_end(); + client_send_msg(); + } } } } -- cgit 1.4.1