diff options
author | rubidium42 <rubidium@openttd.org> | 2021-05-29 19:52:11 +0200 |
---|---|---|
committer | rubidium42 <rubidium42@users.noreply.github.com> | 2021-05-30 00:01:49 +0200 |
commit | 806f78aa04155c667f9f2090f54898d5f66c3144 (patch) | |
tree | 2f22e2681ec7d4068ca853590bcc8f04e06a85a3 /src/network/network_client.h | |
parent | fd95736bac4ef79ba36cff18d09c039a1c713f80 (diff) | |
download | openttd-806f78aa04155c667f9f2090f54898d5f66c3144.tar.xz |
Codechange: [Network] Use std::string to send the client name and rcon commands
Diffstat (limited to 'src/network/network_client.h')
-rw-r--r-- | src/network/network_client.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/network_client.h b/src/network/network_client.h index 169820d96..37deece81 100644 --- a/src/network/network_client.h +++ b/src/network/network_client.h @@ -95,8 +95,8 @@ public: static NetworkRecvStatus SendChat(NetworkAction action, DestType type, int dest, const std::string &msg, int64 data); static NetworkRecvStatus SendSetPassword(const std::string &password); - static NetworkRecvStatus SendSetName(const char *name); - static NetworkRecvStatus SendRCon(const std::string &password, const char *command); + static NetworkRecvStatus SendSetName(const std::string &name); + static NetworkRecvStatus SendRCon(const std::string &password, const std::string &command); static NetworkRecvStatus SendMove(CompanyID company, const std::string &password); static bool IsConnected(); |