diff options
| -rw-r--r-- | src/game/client/components/menus.cpp | 6 | ||||
| -rw-r--r-- | src/game/client/components/menus.hpp | 2 | ||||
| -rw-r--r-- | src/game/variables.hpp | 2 |
3 files changed, 8 insertions, 2 deletions
diff --git a/src/game/client/components/menus.cpp b/src/game/client/components/menus.cpp index 5fe2bbaa..b1043870 100644 --- a/src/game/client/components/menus.cpp +++ b/src/game/client/components/menus.cpp @@ -666,6 +666,12 @@ int MENUS::render() ui_hsplit_t(&screen, 26.0f, &tab_bar, &main_view); ui_vmargin(&tab_bar, 20.0f, &tab_bar); render_menubar(tab_bar); + + if(config.ui_page < PAGE_NEWS || config.ui_page > PAGE_SETTINGS) + { + client_serverbrowse_refresh(BROWSETYPE_INTERNET); + config.ui_page = PAGE_INTERNET; + } // render current page if(client_state() != CLIENTSTATE_OFFLINE) diff --git a/src/game/client/components/menus.hpp b/src/game/client/components/menus.hpp index abe26135..6b90ae93 100644 --- a/src/game/client/components/menus.hpp +++ b/src/game/client/components/menus.hpp @@ -45,7 +45,7 @@ class MENUS : public COMPONENT enum { - PAGE_NEWS=0, + PAGE_NEWS=1, PAGE_GAME, PAGE_SERVER_INFO, PAGE_CALLVOTE, diff --git a/src/game/variables.hpp b/src/game/variables.hpp index edc01635..1928d1b7 100644 --- a/src/game/variables.hpp +++ b/src/game/variables.hpp @@ -38,7 +38,7 @@ MACRO_CONFIG_INT(dbg_firedelay, 0, 0, 1) MACRO_CONFIG_INT(dbg_flow, 0, 0, 1) MACRO_CONFIG_INT(dbg_tuning, 0, 0, 1) -MACRO_CONFIG_INT(ui_page, 3, 0, 5) +MACRO_CONFIG_INT(ui_page, 5, 0, 9) MACRO_CONFIG_STR(ui_server_address, 128, "localhost:8303") MACRO_CONFIG_INT(ui_scale, 100, 1, 100000) |