# HG changeset patch # User frosch # Date 2010-10-09 18:43:37 # Node ID ca4a67f4e6a425629308848326d993fd9730619e # Parent efb1c06db6211c92cadd3fb2967eaae5ffa02fc1 (svn r20912) -Fix [FS#4157]: NEW_INDUSTRYOFFSET != NEW_INDUSTRYTILEOFFSET. diff --git a/src/newgrf_industries.cpp b/src/newgrf_industries.cpp --- a/src/newgrf_industries.cpp +++ b/src/newgrf_industries.cpp @@ -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