summaryrefslogtreecommitdiff
path: root/src/newgrf_industries.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-10-09 18:43:37 +0000
committerfrosch <frosch@openttd.org>2010-10-09 18:43:37 +0000
commit83831b5b9d22ab003e7bda0ff2c14de610579be1 (patch)
treefd3c3ee001802c0a92101d7c757e9dbc821dc461 /src/newgrf_industries.cpp
parent6a90de3a8a4851f3be124890f21916cd1cb50af1 (diff)
downloadopenttd-83831b5b9d22ab003e7bda0ff2c14de610579be1.tar.xz
(svn r20912) -Fix [FS#4157]: NEW_INDUSTRYOFFSET != NEW_INDUSTRYTILEOFFSET.
Diffstat (limited to 'src/newgrf_industries.cpp')
-rw-r--r--src/newgrf_industries.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_industries.cpp b/src/newgrf_industries.cpp
index f96b7a9cc..453a3f288 100644
--- a/src/newgrf_industries.cpp
+++ b/src/newgrf_industries.cpp
@@ -61,7 +61,7 @@ uint32 GetIndustryIDAtOffset(TileIndex tile, const Industry *i, uint32 cur_grfid
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