diff options
author | frosch <frosch@openttd.org> | 2015-05-09 10:21:55 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2015-05-09 10:21:55 +0000 |
commit | b9f7ca2dbd9fe6de6e735393602d69c456de6f3c (patch) | |
tree | 9013aea12fdf30b7779c313e0117fa6026653dde /src/newgrf_industries.cpp | |
parent | 3f55e5364e69c0ce4d0011371afbad4153fc073e (diff) | |
download | openttd-b9f7ca2dbd9fe6de6e735393602d69c456de6f3c.tar.xz |
(svn r27279) -Feature: [NewGRF] Increase the maximum amount of industry types to 128 per NewGRF and 240 in total.
Diffstat (limited to 'src/newgrf_industries.cpp')
-rw-r--r-- | src/newgrf_industries.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newgrf_industries.cpp b/src/newgrf_industries.cpp index bafa393d3..ef8e9fa9b 100644 --- a/src/newgrf_industries.cpp +++ b/src/newgrf_industries.cpp @@ -41,9 +41,9 @@ IndustryTileOverrideManager _industile_mngr(NEW_INDUSTRYTILEOFFSET, NUM_INDUSTRY IndustryType MapNewGRFIndustryType(IndustryType grf_type, uint32 grf_id) { if (grf_type == IT_INVALID) return IT_INVALID; - if (!HasBit(grf_type, 7)) return GB(grf_type, 0, 6); + if (!HasBit(grf_type, 7)) return GB(grf_type, 0, 7); - return _industry_mngr.GetID(GB(grf_type, 0, 6), grf_id); + return _industry_mngr.GetID(GB(grf_type, 0, 7), grf_id); } /** |