forked from mirror/OpenTTD
(svn r19812) -Codechange: give some unnamed enums a name or, in case they consisted of unrelated values use static const (u)int
This commit is contained in:
@@ -22,15 +22,15 @@ struct IndustryTileSpec;
|
||||
|
||||
static const IndustryID INVALID_INDUSTRY = 0xFFFF;
|
||||
|
||||
enum {
|
||||
NEW_INDUSTRYOFFSET = 37, ///< original number of industries
|
||||
NUM_INDUSTRYTYPES = 64, ///< total number of industries, new and old
|
||||
INDUSTRYTILE_NOANIM = 0xFF, ///< flag to mark industry tiles as having no animation
|
||||
NEW_INDUSTRYTILEOFFSET = 175, ///< original number of tiles
|
||||
INVALID_INDUSTRYTYPE = NUM_INDUSTRYTYPES, ///< one above amount is considered invalid
|
||||
NUM_INDUSTRYTILES = 512, ///< total number of industry tiles, new and old
|
||||
INVALID_INDUSTRYTILE = NUM_INDUSTRYTILES, ///< one above amount is considered invalid
|
||||
INDUSTRY_COMPLETED = 3, ///< final stage of industry construction.
|
||||
};
|
||||
static const IndustryType NEW_INDUSTRYOFFSET = 37; ///< original number of industries
|
||||
static const IndustryType NUM_INDUSTRYTYPES = 64; ///< total number of industries, new and old
|
||||
static const IndustryType INVALID_INDUSTRYTYPE = NUM_INDUSTRYTYPES; ///< one above amount is considered invalid
|
||||
|
||||
static const IndustryGfx INDUSTRYTILE_NOANIM = 0xFF; ///< flag to mark industry tiles as having no animation
|
||||
static const IndustryGfx NEW_INDUSTRYTILEOFFSET = 175; ///< original number of tiles
|
||||
static const IndustryGfx NUM_INDUSTRYTILES = 512; ///< total number of industry tiles, new and old
|
||||
static const IndustryGfx INVALID_INDUSTRYTILE = NUM_INDUSTRYTILES; ///< one above amount is considered invalid
|
||||
|
||||
static const int INDUSTRY_COMPLETED = 3; ///< final stage of industry construction.
|
||||
|
||||
#endif /* INDUSTRY_TYPE_H */
|
||||
|
Reference in New Issue
Block a user