diff options
author | rubidium42 <rubidium@openttd.org> | 2021-05-15 08:31:45 +0200 |
---|---|---|
committer | rubidium42 <rubidium42@users.noreply.github.com> | 2021-05-16 10:07:51 +0200 |
commit | 4d246cda73d73cbc3f1557dd4ecb1c1d0d451fb0 (patch) | |
tree | 61bebbd1870c6ad199d3c0f2273e0ec7e807c907 /src/network/network_base.h | |
parent | 83679c0e57cb3e13de6d6c5ec33735bc4070da40 (diff) | |
download | openttd-4d246cda73d73cbc3f1557dd4ecb1c1d0d451fb0.tar.xz |
Codechange: [Network] Let NetworkClientInfo use std::string
Diffstat (limited to 'src/network/network_base.h')
-rw-r--r-- | src/network/network_base.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/network/network_base.h b/src/network/network_base.h index 9ad030062..479f340f1 100644 --- a/src/network/network_base.h +++ b/src/network/network_base.h @@ -22,10 +22,10 @@ extern NetworkClientInfoPool _networkclientinfo_pool; /** Container for all information known about a client. */ struct NetworkClientInfo : NetworkClientInfoPool::PoolItem<&_networkclientinfo_pool> { - ClientID client_id; ///< Client identifier (same as ClientState->client_id) - char client_name[NETWORK_CLIENT_NAME_LENGTH]; ///< Name of the client - CompanyID client_playas; ///< As which company is this client playing (CompanyID) - Date join_date; ///< Gamedate the client has joined + ClientID client_id; ///< Client identifier (same as ClientState->client_id) + std::string client_name; ///< Name of the client + CompanyID client_playas; ///< As which company is this client playing (CompanyID) + Date join_date; ///< Gamedate the client has joined /** * Create a new client. |