Changeset - r15111:03f0b283708b
[Not reviewed]
master
0 1 0
frosch - 14 years ago 2010-05-01 19:04:40
frosch@openttd.org
(svn r19750) -Fix: Var 0x43 is not 'safe' during callbacks 22 and 38 either.
1 file changed with 0 insertions and 6 deletions:
0 comments (0 inline, 0 general)
src/newgrf_industries.cpp
Show inline comments
 
@@ -185,12 +185,6 @@ uint32 IndustryGetVariable(const Resolve
 
	}
 

	
 
	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;
0 comments (0 inline, 0 general)