diff options
author | rubidium <rubidium@openttd.org> | 2007-07-11 22:57:47 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-07-11 22:57:47 +0000 |
commit | 57268fa7e3c67ed1aec21bb935e271c56e430009 (patch) | |
tree | dcbc4478242b9fde2612b63327a2a76bf9fb46a2 /src/newgrf_industries.h | |
parent | 1aaab031b203b25746bead8fc5cf01f62b01a10a (diff) | |
download | openttd-57268fa7e3c67ed1aec21bb935e271c56e430009.tar.xz |
(svn r10514) -Codechange: add support for getting the nearest industry with a given type.
Diffstat (limited to 'src/newgrf_industries.h')
-rw-r--r-- | src/newgrf_industries.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/newgrf_industries.h b/src/newgrf_industries.h index 997a9e3f9..a493c37e8 100644 --- a/src/newgrf_industries.h +++ b/src/newgrf_industries.h @@ -15,6 +15,8 @@ uint32 GetIndustryIDAtOffset(TileIndex new_tile, TileIndex old_tile, const Indus void IndustryProductionCallback(Industry *ind, int reason); bool CheckIfCallBackAllowsCreation(TileIndex tile, IndustryType type, uint itspec_index); +IndustryType MapNewGRFIndustryType(IndustryType grf_type, uint32 grf_id); + /* in newgrf_industrytiles.cpp*/ uint32 IndustryTileGetRandomBits(const ResolverObject *object); uint32 IndustryTileGetTriggers(const ResolverObject *object); |