Codechange: Remove SourceTypeByte type

This commit is contained in:
Charles Pigott
2019-04-22 09:28:09 +01:00
committed by PeterN
parent 5b34c8019f
commit 2e1936da64
3 changed files with 15 additions and 16 deletions

View File

@@ -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