mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-04 13:23:46 +00:00
(svn r18578) -Feature: initially select the last joined server when going to the server list
This commit is contained in:
parent
3d21848258
commit
cf2349ae10
@ -451,10 +451,8 @@ public:
|
|||||||
UpdateNetworkGameWindow(true);
|
UpdateNetworkGameWindow(true);
|
||||||
|
|
||||||
this->field = NGWW_CLIENT;
|
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->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.SetListing(this->last_sorting);
|
||||||
this->servers.SetSortFuncs(this->sorter_funcs);
|
this->servers.SetSortFuncs(this->sorter_funcs);
|
||||||
|
Loading…
Reference in New Issue
Block a user