(svn r13334) -Codechange: move the network settings variables from network/network_internal to settings.

This commit is contained in:
rubidium
2008-05-29 20:21:28 +00:00
parent 61507ffeab
commit c33164831d
12 changed files with 174 additions and 163 deletions

View File

@@ -865,8 +865,8 @@ CommandCost CmdPlayerCtrl(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
assert(_local_player == PLAYER_SPECTATOR);
SetLocalPlayer(p->index);
#ifdef ENABLE_NETWORK
if (!StrEmpty(_network_default_company_pass)) {
char *password = _network_default_company_pass;
if (!StrEmpty(_settings_client.network.default_company_pass)) {
char *password = _settings_client.network.default_company_pass;
NetworkChangeCompanyPassword(1, &password);
}
#endif /* ENABLE_NETWORK */