mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 15:08:19 +00:00
show the internet server browser when trying to show ingame pages offline
This commit is contained in:
parent
1891f6ee76
commit
2e5ab69c2b
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue