mirror of https://github.com/OpenTTD/OpenTTD.git
Change: Throw out per-grf industry tile limit.
The industry tile limit was set based on the premise that action 3 ids might later be extended. They have since been extended. Limit is now the total number of custom tiles that can be used.
This commit is contained in:
parent
7b1e3cfeb5
commit
76a35badb0
|
@ -26,13 +26,13 @@ static const IndustryType NEW_INDUSTRYOFFSET = 37; ///< origi
|
|||
static const IndustryType NUM_INDUSTRYTYPES = 240; ///< total number of industry types, new and old; limited to 240 because we need some special ids like INVALID_INDUSTRYTYPE, IT_AI_UNKNOWN, IT_AI_TOWN, ...
|
||||
static const IndustryType INVALID_INDUSTRYTYPE = NUM_INDUSTRYTYPES; ///< one above amount is considered invalid
|
||||
|
||||
static const IndustryGfx NUM_INDUSTRYTILES_PER_GRF = 255; ///< Maximum number of industry tiles per NewGRF; limited to 255 to allow extending Action3 with an extended byte later on.
|
||||
|
||||
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 IndustryGfx NUM_INDUSTRYTILES_PER_GRF = NUM_INDUSTRYTILES - NEW_INDUSTRYTILEOFFSET; ///< Maximum number of industry tiles per NewGRF.
|
||||
|
||||
static const int INDUSTRY_COMPLETED = 3; ///< final stage of industry construction.
|
||||
|
||||
static const int INDUSTRY_NUM_INPUTS = 16; ///< Number of cargo types an industry can accept
|
||||
|
|
Loading…
Reference in New Issue