diff options
Diffstat (limited to 'src/newgrf_industrytiles.cpp')
-rw-r--r-- | src/newgrf_industrytiles.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/newgrf_industrytiles.cpp b/src/newgrf_industrytiles.cpp index bc07ed72a..4ffdd2600 100644 --- a/src/newgrf_industrytiles.cpp +++ b/src/newgrf_industrytiles.cpp @@ -430,3 +430,13 @@ void TriggerIndustry(Industry *ind, IndustryTileTrigger trigger) } } } + +/** + * Resolve a industry tile's spec and such so we can get a variable. + * @param ro The resolver object to fill. + * @param index The industry tile to get the data from. + */ +void GetIndustryTileResolver(ResolverObject *ro, uint index) +{ + NewIndustryTileResolver(ro, GetIndustryGfx(index), index, Industry::GetByTile(index)); +} |