Changeset - r14025:8eef3f8209fb
[Not reviewed]
master
0 1 0
rubidium - 15 years ago 2009-12-20 19:18:18
rubidium@openttd.org
(svn r18578) -Feature: initially select the last joined server when going to the server list
1 file changed with 1 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/network/network_gui.cpp
Show inline comments
 
@@ -448,16 +448,14 @@ public:
 
		InitializeTextBuffer(&this->text, this->edit_str_buf, this->edit_str_size, 120);
 
		this->SetFocusedWidget(NGWW_CLIENT);
 

	
 
		UpdateNetworkGameWindow(true);
 

	
 
		this->field = NGWW_CLIENT;
 
		this->server = NULL;
 
		this->list_pos = SLP_INVALID;
 

	
 
		this->last_joined = NetworkGameListAddItem(NetworkAddress(_settings_client.network.last_host, _settings_client.network.last_port));
 
		this->server = this->last_joined;
 

	
 
		this->servers.SetListing(this->last_sorting);
 
		this->servers.SetSortFuncs(this->sorter_funcs);
 
		this->servers.ForceRebuild();
 
		this->SortNetworkGameList();
 
	}
0 comments (0 inline, 0 general)