Changeset - r16202:ca4a67f4e6a4
[Not reviewed]
master
0 1 0
frosch - 14 years ago 2010-10-09 18:43:37
frosch@openttd.org
(svn r20912) -Fix [FS#4157]: NEW_INDUSTRYOFFSET != NEW_INDUSTRYTILEOFFSET.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/newgrf_industries.cpp
Show inline comments
 
@@ -61,7 +61,7 @@ uint32 GetIndustryIDAtOffset(TileIndex t
 
	IndustryGfx gfx = GetCleanIndustryGfx(tile);
 
	const IndustryTileSpec *indtsp = GetIndustryTileSpec(gfx);
 

	
 
	if (gfx < NEW_INDUSTRYOFFSET) { // Does it belongs to an old type?
 
	if (gfx < NEW_INDUSTRYTILEOFFSET) { // Does it belongs to an old type?
 
		/* It is an old tile.  We have to see if it's been overriden */
 
		if (indtsp->grf_prop.override == INVALID_INDUSTRYTILE) { // has it been overridden?
 
			return 0xFF << 8 | gfx; // no. Tag FF + the gfx id of that tile
0 comments (0 inline, 0 general)