summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCharles Pigott <charlespigott@googlemail.com>2019-04-22 09:51:06 +0100
committerPeterN <peter@fuzzle.org>2019-04-29 17:40:22 +0100
commit5d66d8fd7dc6e684108887770c11aee4c356c5e7 (patch)
treeeae169754344d6f6509df5f0c87fbb8d29ef06b9 /src
parent2e1936da6453265758d6830e5664474a319fd8a7 (diff)
downloadopenttd-5d66d8fd7dc6e684108887770c11aee4c356c5e7.tar.xz
Codechange: Remove ExpensesTypeByte
Diffstat (limited to 'src')
-rw-r--r--src/economy_type.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/economy_type.h b/src/economy_type.h
index 31f74aacc..aa5ab5dae 100644
--- a/src/economy_type.h
+++ b/src/economy_type.h
@@ -147,7 +147,7 @@ typedef Money Prices[PR_END]; ///< Prices of everything. @see Price
typedef int8 PriceMultipliers[PR_END];
/** Types of expenses. */
-enum ExpensesType {
+enum ExpensesType : byte {
EXPENSES_CONSTRUCTION = 0, ///< Construction costs.
EXPENSES_NEW_VEHICLES, ///< New vehicles.
EXPENSES_TRAIN_RUN, ///< Running costs trains.
@@ -167,7 +167,6 @@ enum ExpensesType {
/** Define basic enum properties for ExpensesType */
template <> struct EnumPropsT<ExpensesType> : MakeEnumPropsT<ExpensesType, byte, EXPENSES_CONSTRUCTION, EXPENSES_END, INVALID_EXPENSES, 8> {};
-typedef TinyEnumT<ExpensesType> ExpensesTypeByte; ///< typedefing-enumification of ExpensesType
/**
* Categories of a price bases.