Add is_server and is_scored flags to a company

This commit is contained in:
dP
2020-07-06 14:46:48 +03:00
parent 46bd8ab608
commit eed1731bd8
2 changed files with 8 additions and 0 deletions

View File

@@ -11,6 +11,12 @@ public:
Money cargo_income[NUM_CARGO]; ///< Cargo income from each cargo type
};
class Company {
public:
bool is_server; ///< whether company is controlled by the server
bool is_scored; ///< whether company is eligible for scoring
};
} // namespace citymania
} // namespace citymania

View File

@@ -100,6 +100,8 @@ struct CompanyProperties {
CompanyEconomyEntry old_economy[MAX_HISTORY_QUARTERS]; ///< Economic data of the company of the last #MAX_HISTORY_QUARTERS quarters.
byte num_valid_stat_ent; ///< Number of valid statistical entries in #old_economy.
citymania::ext::Company cm; ///< CityMania extra company data.
// TODO: Change some of these member variables to use relevant INVALID_xxx constants
CompanyProperties()
: name_2(0), name_1(0), name(nullptr), president_name_1(0), president_name_2(0), president_name(nullptr),