Codechange: Remove PartOfSubsidyByte

This commit is contained in:
Charles Pigott
2019-04-22 10:53:40 +01:00
committed by PeterN
parent 5d66d8fd7d
commit 0a53ee8cfe
3 changed files with 15 additions and 18 deletions

View File

@@ -15,14 +15,11 @@
#include "core/enum_type.hpp"
/** What part of a subsidy is something? */
enum PartOfSubsidy {
enum PartOfSubsidy : byte {
POS_NONE = 0, ///< nothing
POS_SRC = 1 << 0, ///< bit 0 set -> town/industry is source of subsidised path
POS_DST = 1 << 1, ///< bit 1 set -> town/industry is destination of subsidised path
};
/** Helper to store the PartOfSubsidy data in a single byte. */
typedef SimpleTinyEnumT<PartOfSubsidy, byte> PartOfSubsidyByte;
DECLARE_ENUM_AS_BIT_SET(PartOfSubsidy)
typedef uint16 SubsidyID; ///< ID of a subsidy