about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlfred Eriksson <somerunce@gmail.com>2008-10-01 18:40:09 +0000
committerAlfred Eriksson <somerunce@gmail.com>2008-10-01 18:40:09 +0000
commitbddc6ec6cc369e87d9dd0c0d1749bb871e1537a8 (patch)
tree184aa1a1e30c7f9ad3b9a6c3c8649817526059a7
parent7ebdb8d4d73621630e52d0b3646c314ec1179ad0 (diff)
downloadzcatch-bddc6ec6cc369e87d9dd0c0d1749bb871e1537a8.tar.gz
zcatch-bddc6ec6cc369e87d9dd0c0d1749bb871e1537a8.zip
server browser is now default menu page
-rw-r--r--src/game/client/components/menus.cpp6
-rw-r--r--src/game/client/components/menus.hpp2
-rw-r--r--src/game/variables.hpp2
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)