summaryrefslogtreecommitdiff
path: root/src/goal_type.h
diff options
context:
space:
mode:
authorCharles Pigott <charlespigott@googlemail.com>2019-04-22 13:20:24 +0100
committerPeterN <peter@fuzzle.org>2019-04-29 17:40:22 +0100
commita5681d3ebac3c791c230bffb5eceac00222b2e01 (patch)
treeb3c9c0185e073b8929fdc846d2968c6cab15c298 /src/goal_type.h
parent327ff898080d94ab129f6e7ae3c268dcf10d6a08 (diff)
downloadopenttd-a5681d3ebac3c791c230bffb5eceac00222b2e01.tar.xz
Codechange: Remove GoalTypeByte
Diffstat (limited to 'src/goal_type.h')
-rw-r--r--src/goal_type.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/goal_type.h b/src/goal_type.h
index aa9dee349..4321a42b7 100644
--- a/src/goal_type.h
+++ b/src/goal_type.h
@@ -18,7 +18,7 @@ static const uint32 GOAL_QUESTION_BUTTON_COUNT = 18; ///< Amount of buttons avai
static const byte GOAL_QUESTION_TYPE_COUNT = 4; ///< Amount of question types.
/** Types of goal destinations */
-enum GoalType {
+enum GoalType : byte {
GT_NONE, ///< Destination is not linked
GT_TILE, ///< Destination is a tile
GT_INDUSTRY, ///< Destination is an industry
@@ -26,7 +26,6 @@ enum GoalType {
GT_COMPANY, ///< Destination is a company
GT_STORY_PAGE, ///< Destination is a story page
};
-typedef SimpleTinyEnumT<GoalType, byte> GoalTypeByte; ///< The GoalType packed into a byte for savegame purposes.
typedef uint32 GoalTypeID; ///< Contains either tile, industry ID, town ID or company ID (or INVALID_GOALTYPE)
static const GoalTypeID INVALID_GOALTYPE = 0xFFFFFFFF; ///< Invalid/unknown index of GoalType