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_industrytiles.cpp | |
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_industrytiles.cpp')
-rw-r--r-- | src/newgrf_industrytiles.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/newgrf_industrytiles.cpp b/src/newgrf_industrytiles.cpp index f87e4a6d7..028cbf54d 100644 --- a/src/newgrf_industrytiles.cpp +++ b/src/newgrf_industrytiles.cpp @@ -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) |