summaryrefslogtreecommitdiff
path: root/src/subsidy_type.h
diff options
context:
space:
mode:
authorCharles Pigott <charlespigott@googlemail.com>2019-04-22 10:53:40 +0100
committerPeterN <peter@fuzzle.org>2019-04-29 17:40:22 +0100
commit0a53ee8cfe3d02aa1e7abb6c8cf67ef1d7e5ab58 (patch)
treef065a3cb5ce2145e4f773122d6473eb4f693a30e /src/subsidy_type.h
parent5d66d8fd7dc6e684108887770c11aee4c356c5e7 (diff)
downloadopenttd-0a53ee8cfe3d02aa1e7abb6c8cf67ef1d7e5ab58.tar.xz
Codechange: Remove PartOfSubsidyByte
Diffstat (limited to 'src/subsidy_type.h')
-rw-r--r--src/subsidy_type.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/subsidy_type.h b/src/subsidy_type.h
index 83c33a00a..968351ffb 100644
--- a/src/subsidy_type.h
+++ b/src/subsidy_type.h
@@ -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