mirror of https://github.com/OpenTTD/OpenTTD
(svn r21692) -Cleanup: remove unused extern declaration of HashCurrentCompanyPassword(), make it static
parent
13456934b1
commit
8b6a8a8935
|
@ -1507,8 +1507,6 @@ DEF_CONSOLE_CMD(ConSayClient)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
extern void HashCurrentCompanyPassword(const char *password);
|
|
||||||
|
|
||||||
DEF_CONSOLE_CMD(ConCompanyPassword)
|
DEF_CONSOLE_CMD(ConCompanyPassword)
|
||||||
{
|
{
|
||||||
if (argc == 0) {
|
if (argc == 0) {
|
||||||
|
|
|
@ -333,7 +333,7 @@ static const char *GenerateCompanyPasswordHash(const char *password)
|
||||||
/**
|
/**
|
||||||
* Hash the current company password; used when the server 'company' sets his/her password.
|
* Hash the current company password; used when the server 'company' sets his/her password.
|
||||||
*/
|
*/
|
||||||
void HashCurrentCompanyPassword(const char *password)
|
static void HashCurrentCompanyPassword(const char *password)
|
||||||
{
|
{
|
||||||
_password_game_seed = _settings_game.game_creation.generation_seed;
|
_password_game_seed = _settings_game.game_creation.generation_seed;
|
||||||
strecpy(_password_server_id, _settings_client.network.network_id, lastof(_password_server_id));
|
strecpy(_password_server_id, _settings_client.network.network_id, lastof(_password_server_id));
|
||||||
|
|
Loading…
Reference in New Issue