(svn r10514) -Codechange: add support for getting the nearest industry with a given type.

This commit is contained in:
rubidium
2007-07-11 22:57:47 +00:00
parent 1aaab031b2
commit 57268fa7e3
4 changed files with 42 additions and 6 deletions

View File

@@ -99,7 +99,10 @@ static uint32 IndustryTileGetVariable(const ResolverObject *object, byte variabl
case 0x62 : return GetIndustryIDAtOffset(GetNearbyTile(parameter, tile), tile, inds);
}
return 0;
DEBUG(grf, 1, "Unhandled industry tile property 0x%X", variable);
*available = false;
return (uint32)-1;
}
static const SpriteGroup *IndustryTileResolveReal(const ResolverObject *object, const SpriteGroup *group)