diff options
| author | Alfred Eriksson <somerunce@gmail.com> | 2008-11-17 18:44:05 +0000 |
|---|---|---|
| committer | Alfred Eriksson <somerunce@gmail.com> | 2008-11-17 18:44:05 +0000 |
| commit | 2e5ab69c2b0f71c27c54acb43276397ccd9ab809 (patch) | |
| tree | 0d11effd70da5915072e0a4413d9a5c834846364 | |
| parent | 1891f6ee76a363be040e9d708e4a131149f5d930 (diff) | |
| download | zcatch-2e5ab69c2b0f71c27c54acb43276397ccd9ab809.tar.gz zcatch-2e5ab69c2b0f71c27c54acb43276397ccd9ab809.zip | |
show the internet server browser when trying to show ingame pages offline
| -rw-r--r-- | src/game/client/components/menus.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/game/client/components/menus.cpp b/src/game/client/components/menus.cpp index 60820d5b..c16a53b7 100644 --- a/src/game/client/components/menus.cpp +++ b/src/game/client/components/menus.cpp @@ -699,12 +699,13 @@ int MENUS::render() ui_vmargin(&tab_bar, 20.0f, &tab_bar); render_menubar(tab_bar); - if(config.ui_page < PAGE_NEWS || config.ui_page > PAGE_SETTINGS) + // news is not implemented yet + if(config.ui_page <= PAGE_NEWS || config.ui_page > PAGE_SETTINGS || (client_state() == CLIENTSTATE_OFFLINE && config.ui_page >= PAGE_GAME && config.ui_page <= PAGE_CALLVOTE)) { client_serverbrowse_refresh(BROWSETYPE_INTERNET); config.ui_page = PAGE_INTERNET; } - + // render current page if(client_state() != CLIENTSTATE_OFFLINE) { |