From 501558f88178a88e263e12f923e678bfaa5bf6ff Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Fri, 27 Jul 2007 00:03:28 +0000 Subject: increased vb size. added support for settings config variables from the chat line --- src/game/client/game_client.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/game/client') 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 -- cgit 1.4.1