about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/engine/client/gfx.cpp2
-rw-r--r--src/engine/config.h1
-rw-r--r--src/game/client/game_client.cpp13
3 files changed, 11 insertions, 5 deletions
diff --git a/src/engine/client/gfx.cpp b/src/engine/client/gfx.cpp
index a691863b..f6295620 100644
--- a/src/engine/client/gfx.cpp
+++ b/src/engine/client/gfx.cpp
@@ -23,7 +23,7 @@ struct custom_vertex
 	vec4 color;
 };
 
-const int vertex_buffer_size = 2048*32;
+const int vertex_buffer_size = 2048*64;
 //static custom_vertex vertices[4];
 static custom_vertex *vertices = 0;
 static int num_vertices = 0;
diff --git a/src/engine/config.h b/src/engine/config.h
index 116ad9b4..09851d78 100644
--- a/src/engine/config.h
+++ b/src/engine/config.h
@@ -12,6 +12,7 @@ struct configuration
 
 extern configuration config;
 
+void config_set(const char *line);
 void config_reset();
 void config_load(const char *filename);
 void config_save(const char *filename);
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