fixed enter in server browser

This commit is contained in:
Alfred Eriksson 2009-01-21 21:19:10 +00:00
parent 6ffd661c78
commit fe71008a9b

View file

@ -643,8 +643,11 @@ void MENUS::render_serverbrowser(RECT main_view)
ui_vmargin(&button, 2.0f, &button); ui_vmargin(&button, 2.0f, &button);
//ui_vmargin(&button, 2.0f, &button); //ui_vmargin(&button, 2.0f, &button);
static int join_button = 0; static int join_button = 0;
if(ui_do_button(&join_button, "Connect", 0, &button, ui_draw_menu_button, 0)) // || inp_key_down(KEY_ENTER)) if(ui_do_button(&join_button, "Connect", 0, &button, ui_draw_menu_button, 0) || enter_pressed)
{
client_connect(config.ui_server_address); client_connect(config.ui_server_address);
enter_pressed = false;
}
ui_hsplit_b(&button_box, 5.0f, &button_box, &button); ui_hsplit_b(&button_box, 5.0f, &button_box, &button);
ui_hsplit_b(&button_box, 20.0f, &button_box, &button); ui_hsplit_b(&button_box, 20.0f, &button_box, &button);