diff options
author | Charles Pigott <charlespigott@googlemail.com> | 2019-04-22 09:10:04 +0100 |
---|---|---|
committer | PeterN <peter@fuzzle.org> | 2019-04-29 17:40:22 +0100 |
commit | 5b34c8019f135afd9f20d043a489ab96f286038a (patch) | |
tree | 84b38701d78f2348ad1e54c5cb379fc15bdcfe67 /src/company_type.h | |
parent | fcf06ba4c43bb9b7ac0b8541377a5240b3e01126 (diff) | |
download | openttd-5b34c8019f135afd9f20d043a489ab96f286038a.tar.xz |
Codechange: Remove Company/OwnerByte types
Diffstat (limited to 'src/company_type.h')
-rw-r--r-- | src/company_type.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/company_type.h b/src/company_type.h index 771e6d8b9..576a57bf1 100644 --- a/src/company_type.h +++ b/src/company_type.h @@ -17,7 +17,7 @@ /** * Enum for all companies/owners. */ -enum Owner { +enum Owner : byte { /* All companies below MAX_COMPANIES are playable * companies, above, they are special, computer controlled 'companies' */ OWNER_BEGIN = 0x00, ///< First owner @@ -45,10 +45,8 @@ static const uint MAX_HISTORY_QUARTERS = 24; ///< The maximum number /** Define basic enum properties */ template <> struct EnumPropsT<Owner> : MakeEnumPropsT<Owner, byte, OWNER_BEGIN, OWNER_END, INVALID_OWNER> {}; -typedef TinyEnumT<Owner> OwnerByte; typedef Owner CompanyID; -typedef OwnerByte CompanyByte; typedef uint16 CompanyMask; |