(svn r27279) -Feature: [NewGRF] Increase the maximum amount of industry types to 128 per NewGRF and 240 in total.

This commit is contained in:
frosch
2015-05-09 10:21:55 +00:00
parent 3f55e5364e
commit b9f7ca2dbd
2 changed files with 5 additions and 5 deletions

View File

@@ -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);
}
/**