summaryrefslogtreecommitdiff
path: root/src/industry_type.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2013-10-12 16:32:59 +0000
committerfrosch <frosch@openttd.org>2013-10-12 16:32:59 +0000
commitad8b387f9eb8185f25948651b7a34f151812c31d (patch)
tree121ab624535f4963a4ce2cfc0ec0e47006095775 /src/industry_type.h
parenta521af8cf81eaca6791fd966e4ce9d240232bd12 (diff)
downloadopenttd-ad8b387f9eb8185f25948651b7a34f151812c31d.tar.xz
(svn r25837) -Codechange: Use NUM_INDUSTRYTILES_PER_GRF instead of NUM_INDUSTRYTILES to properly distinguish limits per NewGRF and limits of the pool.
-Change: [NewGRF] Lower the limit of industry tile types per NewGRF from 256 to 255 to prevent usage of ID 0xFF in Action3, and thus allowing it to become an extended byte somewhen.
Diffstat (limited to 'src/industry_type.h')
-rw-r--r--src/industry_type.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/industry_type.h b/src/industry_type.h
index 33119b57e..11828c530 100644
--- a/src/industry_type.h
+++ b/src/industry_type.h
@@ -28,6 +28,8 @@ static const IndustryType NEW_INDUSTRYOFFSET = 37; ///< origi
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 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