about summary refs log tree commit diff
path: root/src/game/client
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2007-07-27 00:03:28 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2007-07-27 00:03:28 +0000
commit501558f88178a88e263e12f923e678bfaa5bf6ff (patch)
treed9d0340ead12d4fbc630ce09f10653464ee17993 /src/game/client
parent8cff53e9d5a525397fb27414665996e3db3e5f09 (diff)
downloadzcatch-501558f88178a88e263e12f923e678bfaa5bf6ff.tar.gz
zcatch-501558f88178a88e263e12f923e678bfaa5bf6ff.zip
increased vb size. added support for settings config variables from the chat line
Diffstat (limited to 'src/game/client')
-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 dcd1b191..eef3e692 100644
--- a/src/game/client/game_client.cpp
+++ b/src/game/client/game_client.cpp
@@ -1214,10 +1214,15 @@ void modc_render()
 				// send message
 				if(chat_input_len)
 				{
-					msg_pack_start(MSG_SAY, MSGFLAG_VITAL);
-					msg_pack_string(chat_input, 512);
-					msg_pack_end();
-					client_send_msg();
+					if(chat_input[0] == '/')
+						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();
+					}
 				}
 			}
 			else