diff options
author | planetmaker <planetmaker@openttd.org> | 2013-10-13 11:04:20 +0000 |
---|---|---|
committer | planetmaker <planetmaker@openttd.org> | 2013-10-13 11:04:20 +0000 |
commit | 5bf105d4f2eab74f99cf21a1d3ac8de0392d9d45 (patch) | |
tree | 69b7b019adc120797c2d4cc8b557911cef3c58a1 | |
parent | 871519f75a46c07aab72cbb97df0ea6dd687b3d6 (diff) | |
download | openttd-5bf105d4f2eab74f99cf21a1d3ac8de0392d9d45.tar.xz |
(svn r25856) -Codechange: Use Industry::TileBelongsToIndustry in one more place (cirdan, LordAro)
-rw-r--r-- | src/newgrf_industries.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_industries.cpp b/src/newgrf_industries.cpp index 257e27df1..6716d2c03 100644 --- a/src/newgrf_industries.cpp +++ b/src/newgrf_industries.cpp @@ -54,7 +54,7 @@ IndustryType MapNewGRFIndustryType(IndustryType grf_type, uint32 grf_id) */ uint32 GetIndustryIDAtOffset(TileIndex tile, const Industry *i, uint32 cur_grfid) { - if (!IsTileType(tile, MP_INDUSTRY) || GetIndustryIndex(tile) != i->index) { + if (!i->TileBelongsToIndustry(tile)) { /* No industry and/or the tile does not have the same industry as the one we match it with */ return 0xFFFF; } |