From e90b2649b651e3ede41a2a40e70ab79ea4270dfe Mon Sep 17 00:00:00 2001 From: rubidium42 Date: Fri, 14 May 2021 17:43:23 +0200 Subject: Codechange: [Network] Let NetworkCompanyInfo use std::string --- src/network/network_gui.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/network/network_gui.h') 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); -- cgit v1.2.3-54-g00ecf