Mercurial > hg > openttd
changeset 14035:1017887e1560 draft
(svn r18578) -Feature: initially select the last joined server when going to the server list
author | rubidium <rubidium@openttd.org> |
---|---|
date | Sun, 20 Dec 2009 19:18:18 +0000 |
parents | d26138fa6626 |
children | 3bed2b357ff4 |
files | src/network/network_gui.cpp |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -451,10 +451,8 @@ 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);