diff options
author | rubidium <rubidium@openttd.org> | 2008-06-09 12:17:01 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-06-09 12:17:01 +0000 |
commit | 35f3284a607fd5c1d1e43be0bef7fc42da25fc68 (patch) | |
tree | 5ac847d08af85cd81c504bf8f3e973528125d6a0 /src/network/network_gui.cpp | |
parent | b9eea932378fb85ed40f7e88fc93092e5bc056e5 (diff) | |
download | openttd-35f3284a607fd5c1d1e43be0bef7fc42da25fc68.tar.xz |
(svn r13433) -Codechange: remove a now useless global variable.
-Fix: MP advertising was not advertising.
Diffstat (limited to 'src/network/network_gui.cpp')
-rw-r--r-- | src/network/network_gui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp index 23a0f86a7..379d49195 100644 --- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -686,7 +686,7 @@ struct NetworkStartServerWindow : public QueryStringBaseWindow { const FiosItem *item; /* draw basic widgets */ - SetDParam(1, _connection_types_dropdown[_network_advertise]); + SetDParam(1, _connection_types_dropdown[_settings_client.network.server_advertise]); SetDParam(2, _settings_client.network.max_clients); SetDParam(3, _settings_client.network.max_companies); SetDParam(4, _settings_client.network.max_spectators); @@ -748,7 +748,7 @@ struct NetworkStartServerWindow : public QueryStringBaseWindow { } break; case NSSW_CONNTYPE_BTN: // Connection type - ShowDropDownMenu(this, _connection_types_dropdown, _network_advertise, NSSW_CONNTYPE_BTN, 0, 0); // do it for widget NSSW_CONNTYPE_BTN + ShowDropDownMenu(this, _connection_types_dropdown, _settings_client.network.server_advertise, NSSW_CONNTYPE_BTN, 0, 0); // do it for widget NSSW_CONNTYPE_BTN break; case NSSW_CLIENTS_BTND: case NSSW_CLIENTS_BTNU: // Click on up/down button for number of clients @@ -836,7 +836,7 @@ struct NetworkStartServerWindow : public QueryStringBaseWindow { { switch (widget) { case NSSW_CONNTYPE_BTN: - _network_advertise = (index != 0); + _settings_client.network.server_advertise = (index != 0); break; case NSSW_LANGUAGE_BTN: _settings_client.network.server_lang = _language_dropdown[index] - STR_NETWORK_LANG_ANY; |