diff options
author | rubidium42 <rubidium@openttd.org> | 2021-05-02 09:07:09 +0200 |
---|---|---|
committer | rubidium42 <rubidium42@users.noreply.github.com> | 2021-05-14 23:22:04 +0200 |
commit | 1de5cdeab8387b23b566142f205ac9232a6f61a3 (patch) | |
tree | bb234a1704f3ec3449e0f0b7daf4a50929b09a42 /src/network/network_func.h | |
parent | 98283116fac58053ebd282772b0311a0b417cef7 (diff) | |
download | openttd-1de5cdeab8387b23b566142f205ac9232a6f61a3.tar.xz |
Codechange: [Network] Use std::string for the internal handling of company passwords
Diffstat (limited to 'src/network/network_func.h')
-rw-r--r-- | src/network/network_func.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_func.h b/src/network/network_func.h index cb0ca3355..bedc9bc54 100644 --- a/src/network/network_func.h +++ b/src/network/network_func.h @@ -53,7 +53,7 @@ void NetworkUpdateClientInfo(ClientID client_id); void NetworkClientsToSpectators(CompanyID cid); bool NetworkClientConnectGame(const std::string &connection_string, CompanyID default_company, const char *join_server_password = nullptr, const char *join_company_password = nullptr); void NetworkClientJoinGame(); -void NetworkClientRequestMove(CompanyID company, const char *pass = ""); +void NetworkClientRequestMove(CompanyID company, const std::string &pass = ""); void NetworkClientSendRcon(const char *password, const char *command); void NetworkClientSendChat(NetworkAction action, DestType type, int dest, const char *msg, int64 data = 0); bool NetworkClientPreferTeamChat(const NetworkClientInfo *cio); |