summaryrefslogtreecommitdiff
path: root/src/newgrf_industries.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-05-01 19:04:40 +0000
committerfrosch <frosch@openttd.org>2010-05-01 19:04:40 +0000
commit1716314fa5cca0f4651c901f42f087fbb56c6dff (patch)
tree47e82379ee15bf8baea979ded45bf160ee497fe3 /src/newgrf_industries.cpp
parentcb61f5ac10fd69ab4b4b7da32c1bf719f58f8aae (diff)
downloadopenttd-1716314fa5cca0f4651c901f42f087fbb56c6dff.tar.xz
(svn r19750) -Fix: Var 0x43 is not 'safe' during callbacks 22 and 38 either.
Diffstat (limited to 'src/newgrf_industries.cpp')
-rw-r--r--src/newgrf_industries.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/newgrf_industries.cpp b/src/newgrf_industries.cpp
index e9cd0e477..55b606d62 100644
--- a/src/newgrf_industries.cpp
+++ b/src/newgrf_industries.cpp
@@ -185,12 +185,6 @@ uint32 IndustryGetVariable(const ResolverObject *object, byte variable, byte par
}
if (industry == NULL) {
- /* industry does not exist, only use those variables that are "safe" */
- switch (variable) {
- /* Manhattan distance of closes dry/water tile */
- case 0x43: return GetClosestWaterDistance(tile, (indspec->behaviour & INDUSTRYBEH_BUILT_ONWATER) == 0);
- }
-
DEBUG(grf, 1, "Unhandled property 0x%X (no available industry) in callback 0x%x", variable, object->callback);
*available = false;