about summary refs log tree commit diff
path: root/src/game/client
diff options
context:
space:
mode:
authorAlfred Eriksson <somerunce@gmail.com>2008-11-17 18:44:05 +0000
committerAlfred Eriksson <somerunce@gmail.com>2008-11-17 18:44:05 +0000
commit2e5ab69c2b0f71c27c54acb43276397ccd9ab809 (patch)
tree0d11effd70da5915072e0a4413d9a5c834846364 /src/game/client
parent1891f6ee76a363be040e9d708e4a131149f5d930 (diff)
downloadzcatch-2e5ab69c2b0f71c27c54acb43276397ccd9ab809.tar.gz
zcatch-2e5ab69c2b0f71c27c54acb43276397ccd9ab809.zip
show the internet server browser when trying to show ingame pages offline
Diffstat (limited to 'src/game/client')
-rw-r--r--src/game/client/components/menus.cpp5
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)
 		{