From fafe33cdd2dfe8252501c7a7b824f8c36dd3c3a3 Mon Sep 17 00:00:00 2001 From: belugas Date: Wed, 15 Aug 2007 00:49:34 +0000 Subject: (svn r10903) -Feature: [NewGRF] Add support for variable 44 of Variational Action 2 for Industries --- src/newgrf_industries.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/newgrf_industries.cpp') diff --git a/src/newgrf_industries.cpp b/src/newgrf_industries.cpp index a627376fa..f972e8e8a 100644 --- a/src/newgrf_industries.cpp +++ b/src/newgrf_industries.cpp @@ -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); -- cgit v1.2.3-54-g00ecf