(svn r27279) -Feature: [NewGRF] Increase the maximum amount of industry types to 128 per NewGRF and 240 in total.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user