diff options
author | rubidium <rubidium@openttd.org> | 2011-01-19 16:37:06 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-01-19 16:37:06 +0000 |
commit | e54a1f67213218f52d8e27bce3aeda5d7dc16ad9 (patch) | |
tree | 8280435b51df9d855d217e9da1c973e5b134d455 /src/network/network.cpp | |
parent | e95718bf43a7d34868ee11002108ff0dd6e1ab2a (diff) | |
download | openttd-e54a1f67213218f52d8e27bce3aeda5d7dc16ad9.tar.xz |
(svn r21853) -Codechange: HashCurrentCompanyPassword is only used by servers, so move it to network_server.* (dihedral)
Diffstat (limited to 'src/network/network.cpp')
-rw-r--r-- | src/network/network.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/network/network.cpp b/src/network/network.cpp index e6fff9420..d29ac023c 100644 --- a/src/network/network.cpp +++ b/src/network/network.cpp @@ -203,25 +203,6 @@ const char *GenerateCompanyPasswordHash(const char *password, const char *passwo } /** - * Hash the current company password; used when the server 'company' sets his/her password. - */ -void HashCurrentCompanyPassword(const char *password) -{ - uint32 password_game_seed; - char password_server_id[NETWORK_SERVER_ID_LENGTH]; - - password_game_seed = _settings_game.game_creation.generation_seed; - strecpy(password_server_id, _settings_client.network.network_id, lastof(password_server_id)); - - const char *new_pw = GenerateCompanyPasswordHash(password, password_server_id, password_game_seed); - strecpy(_network_company_states[_local_company].password, new_pw, lastof(_network_company_states[_local_company].password)); - - if (_network_server) { - NetworkServerUpdateCompanyPassworded(_local_company, !StrEmpty(_network_company_states[_local_company].password)); - } -} - -/** * Check if the company we want to join requires a password. * @param company_id id of the company we want to check the 'passworded' flag for. * @return true if the company requires a password. |