(svn r10903) -Feature: [NewGRF] Add support for variable 44 of Variational Action 2 for Industries

This commit is contained in:
belugas
2007-08-15 00:49:34 +00:00
parent ba8c451485
commit fafe33cdd2
4 changed files with 13 additions and 3 deletions

View File

@@ -160,6 +160,9 @@ uint32 IndustryGetVariable(const ResolverObject *object, byte variable, byte par
/* Manhattan distance of closes dry/water tile */
case 0x43: return GetClosestWaterDistance(tile, (object->u.industry_location.spec->behaviour & INDUSTRYBEH_BUILT_ONWATER) == 0);
/* Layout number */
case 0x44: return industry->selected_layout;
/* Get industry ID at offset param */
case 0x60: return GetIndustryIDAtOffset(GetNearbyTile(parameter, industry->xy), tile, industry);