1
0
Fork 0

(svn r25856) -Codechange: Use Industry::TileBelongsToIndustry in one more place (cirdan, LordAro)

release/1.4
planetmaker 2013-10-13 11:04:20 +00:00
parent 871519f75a
commit 5bf105d4f2
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ IndustryType MapNewGRFIndustryType(IndustryType grf_type, uint32 grf_id)
*/ */
uint32 GetIndustryIDAtOffset(TileIndex tile, const Industry *i, uint32 cur_grfid) 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 */ /* No industry and/or the tile does not have the same industry as the one we match it with */
return 0xFFFF; return 0xFFFF;
} }