summaryrefslogtreecommitdiff
path: root/src/industry_type.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2013-10-12 16:32:16 +0000
committerfrosch <frosch@openttd.org>2013-10-12 16:32:16 +0000
commita521af8cf81eaca6791fd966e4ce9d240232bd12 (patch)
treeb72bbf47b7752e96adc243e512c61cb778bd34cf /src/industry_type.h
parentac599625da28a448a4f9ec655e4767e6436d0e16 (diff)
downloadopenttd-a521af8cf81eaca6791fd966e4ce9d240232bd12.tar.xz
(svn r25836) -Codechange: Use NUM_INDUSTRYTYPES_PER_GRF instead of NUM_INDUSTRYTYPES to properly distinguish limits per NewGRF and limits of the pool.
Diffstat (limited to 'src/industry_type.h')
-rw-r--r--src/industry_type.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/industry_type.h b/src/industry_type.h
index 34650d785..33119b57e 100644
--- a/src/industry_type.h
+++ b/src/industry_type.h
@@ -22,8 +22,10 @@ struct IndustryTileSpec;
static const IndustryID INVALID_INDUSTRY = 0xFFFF;
-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 NUM_INDUSTRYTYPES_PER_GRF = 64; ///< maximum number of industry types per NewGRF
+
+static const IndustryType NEW_INDUSTRYOFFSET = 37; ///< original number of industry types
+static const IndustryType NUM_INDUSTRYTYPES = 64; ///< total number of industry types, 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