From 5f7f99e38167b83b7767ecc8b92df0df938c59cf Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 11 Jul 2007 23:10:22 +0000 Subject: (svn r10515) -Codechange: allow getting some more data about the environment of an industry. --- src/newgrf_industrytiles.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/newgrf_industrytiles.cpp') 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); -- cgit v1.2.3-54-g00ecf