diff options
author | rubidium <rubidium@openttd.org> | 2009-12-20 19:18:18 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-12-20 19:18:18 +0000 |
commit | cf2349ae10c57b6b4b171eeeca11382d1d8afa4b (patch) | |
tree | 4828a5245939a8c325e0fbeb38c24a637df491c6 /src | |
parent | 3d2184825800755c60d56b4878befd35d77998c3 (diff) | |
download | openttd-cf2349ae10c57b6b4b171eeeca11382d1d8afa4b.tar.xz |
(svn r18578) -Feature: initially select the last joined server when going to the server list
Diffstat (limited to 'src')
-rw-r--r-- | src/network/network_gui.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp index d2e7c3ab0..4ba226266 100644 --- 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); |