mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
motd tweaks
This commit is contained in:
parent
2a4e911c32
commit
15cd754da0
|
@ -896,7 +896,9 @@ void render_game()
|
||||||
|
|
||||||
if(inp_key_down(KEY_ESC))
|
if(inp_key_down(KEY_ESC))
|
||||||
{
|
{
|
||||||
if (chat_mode)
|
if(server_motd_time)
|
||||||
|
server_motd_time = 0;
|
||||||
|
else if (chat_mode)
|
||||||
chat_mode = CHATMODE_NONE;
|
chat_mode = CHATMODE_NONE;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -542,10 +542,8 @@ extern "C" void modc_message(int msgtype)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dbg_msg("game", "MOTD: %s", server_motd);
|
if(server_motd[0] && config.cl_motd_time)
|
||||||
|
server_motd_time = time_get()+time_freq()*config.cl_motd_time;
|
||||||
if(server_motd[0])
|
|
||||||
server_motd_time = time_get()+time_freq()*10;
|
|
||||||
else
|
else
|
||||||
server_motd_time = 0;
|
server_motd_time = 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,6 +22,7 @@ MACRO_CONFIG_INT(ed_showkeys, 0, 0, 1)
|
||||||
MACRO_CONFIG_INT(cl_flow, 0, 0, 1)
|
MACRO_CONFIG_INT(cl_flow, 0, 0, 1)
|
||||||
|
|
||||||
MACRO_CONFIG_INT(cl_show_welcome, 1, 0, 1)
|
MACRO_CONFIG_INT(cl_show_welcome, 1, 0, 1)
|
||||||
|
MACRO_CONFIG_INT(cl_motd_time, 10, 0, 100)
|
||||||
|
|
||||||
MACRO_CONFIG_INT(player_use_custom_color, 0, 0, 1)
|
MACRO_CONFIG_INT(player_use_custom_color, 0, 0, 1)
|
||||||
MACRO_CONFIG_INT(player_color_body, 65408, 0, 0)
|
MACRO_CONFIG_INT(player_color_body, 65408, 0, 0)
|
||||||
|
|
Loading…
Reference in a new issue