Changeset - r23676:5675654d9986
[Not reviewed]
master
0 1 0
Charles Pigott - 5 years ago 2019-04-22 08:51:06
charlespigott@googlemail.com
Codechange: Remove ExpensesTypeByte
1 file changed with 1 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/economy_type.h
Show inline comments
 
@@ -144,13 +144,13 @@ enum Price {
 
DECLARE_POSTFIX_INCREMENT(Price)
 

	
 
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.
 
	EXPENSES_ROADVEH_RUN,         ///< Running costs road vehicles.
 
	EXPENSES_AIRCRAFT_RUN,        ///< Running costs aircraft.
 
	EXPENSES_SHIP_RUN,            ///< Running costs ships.
 
@@ -164,13 +164,12 @@ enum ExpensesType {
 
	EXPENSES_END,                 ///< Number of expense types.
 
	INVALID_EXPENSES      = 0xFF, ///< Invalid expense type.
 
};
 

	
 
/** 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.
 
 */
 
enum PriceCategory {
 
	PCAT_NONE,         ///< Not affected by difficulty settings
0 comments (0 inline, 0 general)