(svn r21854) -Codechange: refactor the password setting methods to make it possible to change the password of other companies (on the server)

This commit is contained in:
rubidium
2011-01-19 16:47:40 +00:00
parent a5108a1fa2
commit f1e42dc23b
9 changed files with 32 additions and 32 deletions

View File

@@ -823,7 +823,7 @@ static void MakeNewGameDone()
/* We are the server, we start a new company (not dedicated),
* so set the default password *if* needed. */
if (_network_server && !StrEmpty(_settings_client.network.default_company_pass)) {
NetworkChangeCompanyPassword(_settings_client.network.default_company_pass);
NetworkChangeCompanyPassword(_local_company, _settings_client.network.default_company_pass);
}
#endif /* ENABLE_NETWORK */