diff options
author | belugas <belugas@openttd.org> | 2007-09-06 03:02:38 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2007-09-06 03:02:38 +0000 |
commit | 71a23846d3a7375e4292a5f80e8ccee5a04b4065 (patch) | |
tree | 36ea061aca854018a4a9f94c6f8e5c1d783dabe1 | |
parent | 07c67183bdd1327c143c9023cace9ecaa015e641 (diff) | |
download | openttd-71a23846d3a7375e4292a5f80e8ccee5a04b4065.tar.xz |
(svn r11050) -Codechange: Use the translated gfx, not the original one.
-rw-r--r-- | src/industry_cmd.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp index b24c5b877..260e84065 100644 --- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -1196,7 +1196,8 @@ static bool CheckIfIndustryTilesAreFree(TileIndex tile, const IndustryTileTable if (!EnsureNoVehicle(cur_tile)) return false; if (MayHaveBridgeAbove(cur_tile) && IsBridgeAbove(cur_tile)) return false; - const IndustryTileSpec *its = GetIndustryTileSpec(it->gfx); + const IndustryTileSpec *its = GetIndustryTileSpec(gfx); + IndustyBehaviour ind_behav = GetIndustrySpec(type)->behaviour; if (HASBIT(its->callback_flags, CBM_INDT_SHAPE_CHECK)) { |