From 1716314fa5cca0f4651c901f42f087fbb56c6dff Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 1 May 2010 19:04:40 +0000 Subject: (svn r19750) -Fix: Var 0x43 is not 'safe' during callbacks 22 and 38 either. --- src/newgrf_industries.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/newgrf_industries.cpp') 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; -- cgit v1.2.3-54-g00ecf