From 6bb33acc0d86e1fdd6c30b1fa9b4308a908059ff Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 13 Aug 2011 08:32:55 +0000 Subject: (svn r22738) -Fix [FS#4722] (r21854): Setting company passwords via the GUI on servers (including starting a company with the default password) failed, so no client could join. --- src/network/network.cpp | 4 ++-- src/network/network_func.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/network') diff --git a/src/network/network.cpp b/src/network/network.cpp index f2f1486d5..b9125e12d 100644 --- a/src/network/network.cpp +++ b/src/network/network.cpp @@ -158,12 +158,12 @@ byte NetworkSpectatorCount() * @param password The unhashed password we like to set ('*' or '' resets the password) * @return The password. */ -const char *NetworkChangeCompanyPassword(CompanyID company_id, const char *password, bool already_hashed) +const char *NetworkChangeCompanyPassword(CompanyID company_id, const char *password) { if (strcmp(password, "*") == 0) password = ""; if (_network_server) { - NetworkServerSetCompanyPassword(company_id, password, already_hashed); + NetworkServerSetCompanyPassword(company_id, password, false); } else { NetworkClientSetCompanyPassword(password); } diff --git a/src/network/network_func.h b/src/network/network_func.h index af530d068..015c7dba1 100644 --- a/src/network/network_func.h +++ b/src/network/network_func.h @@ -36,7 +36,7 @@ extern StringList _network_ban_list; byte NetworkSpectatorCount(); void NetworkUpdateClientName(); bool NetworkCompanyHasClients(CompanyID company); -const char *NetworkChangeCompanyPassword(CompanyID company_id, const char *password, bool already_hashed = true); +const char *NetworkChangeCompanyPassword(CompanyID company_id, const char *password); void NetworkReboot(); void NetworkDisconnect(bool blocking = false, bool close_admins = true); void NetworkGameLoop(); -- cgit v1.2.3-70-g09d2