# HG changeset patch # User rubidium # Date 2009-12-20 19:18:18 # Node ID 8eef3f8209fb0838583ef8dc420a4c64a54d6f04 # Parent 822a9374c8b9a770633c828a91e11d0c69cd9261 (svn r18578) -Feature: initially select the last joined server when going to the server list diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp --- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -451,10 +451,8 @@ public: 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);