summaryrefslogtreecommitdiff
path: root/src/network/network_gui.h
diff options
context:
space:
mode:
authorrubidium42 <rubidium@openttd.org>2021-05-14 17:43:23 +0200
committerrubidium42 <rubidium42@users.noreply.github.com>2021-05-16 10:07:51 +0200
commite90b2649b651e3ede41a2a40e70ab79ea4270dfe (patch)
treed93c6006a76b58bf817f31af3b6df3f23bd18c52 /src/network/network_gui.h
parent5c01f9ea525616b432968df845a90da1d888631f (diff)
downloadopenttd-e90b2649b651e3ede41a2a40e70ab79ea4270dfe.tar.xz
Codechange: [Network] Let NetworkCompanyInfo use std::string
Diffstat (limited to 'src/network/network_gui.h')
-rw-r--r--src/network/network_gui.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/network/network_gui.h b/src/network/network_gui.h
index f435efbcd..855d7d53c 100644
--- a/src/network/network_gui.h
+++ b/src/network/network_gui.h
@@ -27,14 +27,14 @@ void ShowNetworkCompanyPasswordWindow(Window *parent);
/** Company information stored at the client side */
struct NetworkCompanyInfo : NetworkCompanyStats {
- char company_name[NETWORK_COMPANY_NAME_LENGTH]; ///< Company name
- Year inaugurated_year; ///< What year the company started in
- Money company_value; ///< The company value
- Money money; ///< The amount of money the company has
- Money income; ///< How much did the company earned last year
- uint16 performance; ///< What was their performance last month?
- bool use_password; ///< Is there a password
- char clients[NETWORK_CLIENTS_LENGTH]; ///< The clients that control this company (Name1, name2, ..)
+ std::string company_name; ///< Company name
+ Year inaugurated_year; ///< What year the company started in
+ Money company_value; ///< The company value
+ Money money; ///< The amount of money the company has
+ Money income; ///< How much did the company earn last year
+ uint16 performance; ///< What was his performance last month?
+ bool use_password; ///< Is there a password
+ std::string clients; ///< The clients that control this company (Name1, name2, ..)
};
NetworkCompanyInfo *GetLobbyCompanyInfo(CompanyID company);