diff options
author | rubidium42 <rubidium@openttd.org> | 2021-05-29 20:22:41 +0200 |
---|---|---|
committer | rubidium42 <rubidium42@users.noreply.github.com> | 2021-05-30 00:01:49 +0200 |
commit | e3c9ed4d151a021e3f10492744915fc15b0bc0d6 (patch) | |
tree | ec0b575211cfbeee72a96b74d3b04d7a2063adcd /src/network/network_internal.h | |
parent | 806f78aa04155c667f9f2090f54898d5f66c3144 (diff) | |
download | openttd-e3c9ed4d151a021e3f10492744915fc15b0bc0d6.tar.xz |
Codechange: [Network] Use std::string to determine an unique name for clients
Diffstat (limited to 'src/network/network_internal.h')
-rw-r--r-- | src/network/network_internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_internal.h b/src/network/network_internal.h index d1db971a3..b7e6f4ece 100644 --- a/src/network/network_internal.h +++ b/src/network/network_internal.h @@ -117,7 +117,7 @@ void ShowNetworkError(StringID error_string); void NetworkTextMessage(NetworkAction action, TextColour colour, bool self_send, const std::string &name, const std::string &str = "", int64 data = 0); uint NetworkCalculateLag(const NetworkClientSocket *cs); StringID GetNetworkErrorMsg(NetworkErrorCode err); -bool NetworkFindName(char *new_name, const char *last); +bool NetworkMakeClientNameUnique(std::string &new_name); std::string GenerateCompanyPasswordHash(const std::string &password, const std::string &password_server_id, uint32 password_game_seed); NetworkAddress ParseConnectionString(const std::string &connection_string, uint16 default_port); |