mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
increased vb size. added support for settings config variables from the chat line
This commit is contained in:
parent
8cff53e9d5
commit
501558f881
BIN
data/demo.map
BIN
data/demo.map
Binary file not shown.
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 6.1 KiB |
Loading…
Reference in a new issue