From 76a35badb083890a4b1f6049895ba346ce7bba46 Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Mon, 26 Feb 2024 08:47:17 +0000 Subject: [PATCH] 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. --- src/industry_type.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/industry_type.h b/src/industry_type.h index 185e1f3a79..d3503fdbb9 100644 --- a/src/industry_type.h +++ b/src/industry_type.h @@ -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