changeset 15121:1885be2a01b9 draft

(svn r19750) -Fix: Var 0x43 is not 'safe' during callbacks 22 and 38 either.
author frosch <frosch@openttd.org>
date Sat, 01 May 2010 19:04:40 +0000
parents f2b9f984aca7
children 0999dc64814b
files src/newgrf_industries.cpp
diffstat 1 files changed, 0 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/newgrf_industries.cpp
+++ b/src/newgrf_industries.cpp
@@ -185,12 +185,6 @@
 	}
 
 	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;