diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/game/client/menu2.cpp | 2 | ||||
| -rw-r--r-- | src/game/game_variables.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/game/client/menu2.cpp b/src/game/client/menu2.cpp index 2e44df6b..0527e15f 100644 --- a/src/game/client/menu2.cpp +++ b/src/game/client/menu2.cpp @@ -922,7 +922,7 @@ static void menu2_render_serverbrowser(RECT main_view) ui2_hsplit_t(&toolbox, 20.0f, &button, &toolbox); ui2_do_label(&button, "Host address:", 18, -1); ui2_vsplit_l(&button, 100.0f, 0, &button); - ui2_do_edit_box(&address, &button, address, sizeof(address)); + ui2_do_edit_box(&address, &button, config.ui_server_address, sizeof(config.ui_server_address)); } } diff --git a/src/game/game_variables.h b/src/game/game_variables.h index 5dd5cf33..3f779730 100644 --- a/src/game/game_variables.h +++ b/src/game/game_variables.h @@ -45,6 +45,8 @@ MACRO_CONFIG_STR(player_skin, 64, "default") MACRO_CONFIG_INT(dbg_new_gui, 0, 0, 1) MACRO_CONFIG_INT(ui_page, 0, 0, 5) +MACRO_CONFIG_STR(ui_server_address, 128, "localhost:8303") + MACRO_CONFIG_STR(sv_msg, 512, "") |