about summary refs log tree commit diff
path: root/src/game/client/game_client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/client/game_client.cpp')
-rw-r--r--src/game/client/game_client.cpp13
1 files changed, 9 insertions, 4 deletions
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();
+						}
 					}
 				}
 			}