summaryrefslogtreecommitdiff
path: root/src/cargo_type.h
diff options
context:
space:
mode:
authorCharles Pigott <charlespigott@googlemail.com>2019-04-22 09:28:09 +0100
committerPeterN <peter@fuzzle.org>2019-04-29 17:40:22 +0100
commit2e1936da6453265758d6830e5664474a319fd8a7 (patch)
tree053a147c8c693a7acd00c09cd3449cea6399e468 /src/cargo_type.h
parent5b34c8019f135afd9f20d043a489ab96f286038a (diff)
downloadopenttd-2e1936da6453265758d6830e5664474a319fd8a7.tar.xz
Codechange: Remove SourceTypeByte type
Diffstat (limited to 'src/cargo_type.h')
-rw-r--r--src/cargo_type.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cargo_type.h b/src/cargo_type.h
index 79d1c84f4..78c04ae72 100644
--- a/src/cargo_type.h
+++ b/src/cargo_type.h
@@ -145,12 +145,11 @@ public:
/** Types of cargo source and destination */
-enum SourceType {
+enum SourceType : byte {
ST_INDUSTRY, ///< Source/destination is an industry
ST_TOWN, ///< Source/destination is a town
ST_HEADQUARTERS, ///< Source/destination are company headquarters
};
-typedef SimpleTinyEnumT<SourceType, byte> SourceTypeByte; ///< The SourceType packed into a byte for savegame purposes.
typedef uint16 SourceID; ///< Contains either industry ID, town ID or company ID (or INVALID_SOURCE)
static const SourceID INVALID_SOURCE = 0xFFFF; ///< Invalid/unknown index of source