summaryrefslogtreecommitdiff
path: root/src/network/network_func.h
diff options
context:
space:
mode:
authorrubidium42 <rubidium@openttd.org>2021-05-29 19:52:11 +0200
committerrubidium42 <rubidium42@users.noreply.github.com>2021-05-30 00:01:49 +0200
commit806f78aa04155c667f9f2090f54898d5f66c3144 (patch)
tree2f22e2681ec7d4068ca853590bcc8f04e06a85a3 /src/network/network_func.h
parentfd95736bac4ef79ba36cff18d09c039a1c713f80 (diff)
downloadopenttd-806f78aa04155c667f9f2090f54898d5f66c3144.tar.xz
Codechange: [Network] Use std::string to send the client name and rcon commands
Diffstat (limited to 'src/network/network_func.h')
-rw-r--r--src/network/network_func.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_func.h b/src/network/network_func.h
index 22ed04c32..ec27d4b78 100644
--- a/src/network/network_func.h
+++ b/src/network/network_func.h
@@ -55,7 +55,7 @@ void NetworkClientsToSpectators(CompanyID cid);
bool NetworkClientConnectGame(const std::string &connection_string, CompanyID default_company, const std::string &join_server_password = "", const std::string &join_company_password = "");
void NetworkClientJoinGame();
void NetworkClientRequestMove(CompanyID company, const std::string &pass = "");
-void NetworkClientSendRcon(const std::string &password, const char *command);
+void NetworkClientSendRcon(const std::string &password, const std::string &command);
void NetworkClientSendChat(NetworkAction action, DestType type, int dest, const std::string &msg, int64 data = 0);
bool NetworkClientPreferTeamChat(const NetworkClientInfo *cio);
bool NetworkCompanyIsPassworded(CompanyID company_id);