(svn r10700) -Codechange: Enable to jump (by default) to the overriding industry tile spec of the one been queried.

Only on certain very specific circumstances do we need the original spec
This commit is contained in:
belugas
2007-07-27 02:41:29 +00:00
parent 205e700b26
commit 8ad3a6f8fd
3 changed files with 11 additions and 5 deletions

View File

@@ -87,8 +87,8 @@ uint32 GetIndustryIDAtOffset(TileIndex new_tile, TileIndex old_tile, const Indus
if (GetIndustryIndex(new_tile) == i->index) { // Does it belong to the same industry?
IndustryGfx gfx = GetIndustryGfx(new_tile);
const IndustryTileSpec *indtsp = GetIndustryTileSpec(gfx);
const IndustryTileSpec *indold = GetIndustryTileSpec(GetIndustryGfx(old_tile));
const IndustryTileSpec *indtsp = GetIndustryTileSpec(gfx, false);
const IndustryTileSpec *indold = GetIndustryTileSpec(GetIndustryGfx(old_tile), false);
if (gfx < NEW_INDUSTRYOFFSET) { // Does it belongs to an old type?
/* It is an old tile. We have to see if it's been overriden */