motd tweaks

This commit is contained in:
Magnus Auvinen 2008-04-05 07:34:06 +00:00
parent 2a4e911c32
commit 15cd754da0
3 changed files with 6 additions and 5 deletions

View file

@ -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
{ {

View file

@ -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;
} }

View file

@ -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)