summaryrefslogtreecommitdiff
path: root/src/company_type.h
diff options
context:
space:
mode:
authorCharles Pigott <charlespigott@googlemail.com>2019-04-22 09:10:04 +0100
committerPeterN <peter@fuzzle.org>2019-04-29 17:40:22 +0100
commit5b34c8019f135afd9f20d043a489ab96f286038a (patch)
tree84b38701d78f2348ad1e54c5cb379fc15bdcfe67 /src/company_type.h
parentfcf06ba4c43bb9b7ac0b8541377a5240b3e01126 (diff)
downloadopenttd-5b34c8019f135afd9f20d043a489ab96f286038a.tar.xz
Codechange: Remove Company/OwnerByte types
Diffstat (limited to 'src/company_type.h')
-rw-r--r--src/company_type.h4
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;