about summary refs log tree commit diff
path: root/src/game
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2007-09-23 21:00:57 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2007-09-23 21:00:57 +0000
commite55ba53ba7aa993279bf3f6a21b1e771fda74f1d (patch)
treed2108e3ccdffe43dee99acef4bcf819141472c06 /src/game
parentebbe51718e6b3ed81ee0932641e0bc4ddb805fcc (diff)
downloadzcatch-e55ba53ba7aa993279bf3f6a21b1e771fda74f1d.tar.gz
zcatch-e55ba53ba7aa993279bf3f6a21b1e771fda74f1d.zip
fixed remote console
Diffstat (limited to 'src/game')
-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();
+						}
 					}
 				}
 			}