From 2e5ab69c2b0f71c27c54acb43276397ccd9ab809 Mon Sep 17 00:00:00 2001 From: Alfred Eriksson Date: Mon, 17 Nov 2008 18:44:05 +0000 Subject: show the internet server browser when trying to show ingame pages offline --- src/game/client/components/menus.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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) { -- cgit 1.4.1