diff options
author | belugas <belugas@openttd.org> | 2007-08-15 00:49:34 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2007-08-15 00:49:34 +0000 |
commit | fafe33cdd2dfe8252501c7a7b824f8c36dd3c3a3 (patch) | |
tree | 3db01e63b9e6b1620a1c3f32e99f699aeea710e0 /src/newgrf_industries.cpp | |
parent | ba8c451485736d1e60d4f5069bcf913dc281e1d2 (diff) | |
download | openttd-fafe33cdd2dfe8252501c7a7b824f8c36dd3c3a3.tar.xz |
(svn r10903) -Feature: [NewGRF] Add support for variable 44 of Variational Action 2 for Industries
Diffstat (limited to 'src/newgrf_industries.cpp')
-rw-r--r-- | src/newgrf_industries.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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); |