diff options
author | rubidium <rubidium@openttd.org> | 2007-07-11 23:10:22 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-07-11 23:10:22 +0000 |
commit | 5f7f99e38167b83b7767ecc8b92df0df938c59cf (patch) | |
tree | 7c171c2dc2f8e4513a9017d8735c3ee621052493 /src/newgrf_industrytiles.cpp | |
parent | 57268fa7e3c67ed1aec21bb935e271c56e430009 (diff) | |
download | openttd-5f7f99e38167b83b7767ecc8b92df0df938c59cf.tar.xz |
(svn r10515) -Codechange: allow getting some more data about the environment of an industry.
Diffstat (limited to 'src/newgrf_industrytiles.cpp')
-rw-r--r-- | src/newgrf_industrytiles.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/newgrf_industrytiles.cpp b/src/newgrf_industrytiles.cpp index 028cbf54d..bfa1dbb88 100644 --- a/src/newgrf_industrytiles.cpp +++ b/src/newgrf_industrytiles.cpp @@ -30,7 +30,7 @@ * @param index of the industry been queried for * @return a construction of bits obeying the newgrf format */ -static uint32 GetNearbyIndustryTileInformation(byte parameter, TileIndex tile, IndustryID index) +uint32 GetNearbyIndustryTileInformation(byte parameter, TileIndex tile, IndustryID index) { byte tile_type; bool is_same_industry; @@ -87,7 +87,8 @@ static uint32 IndustryTileGetVariable(const ResolverObject *object, byte variabl /* Land info of nearby tiles */ case 0x60 : return GetNearbyIndustryTileInformation(parameter, tile, inds == NULL ? (IndustryID)INVALID_INDUSTRY : inds->index); - case 0x61 : {/* Animation stage of nearby tiles */ + /* Animation stage of nearby tiles */ + case 0x61 : { tile = GetNearbyTile(parameter, tile); if (IsTileType(tile, MP_INDUSTRY) && GetIndustryByTile(tile) == inds) { return GetIndustryAnimationState(tile); |