summaryrefslogtreecommitdiff
path: root/src/economy.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-01-04 18:21:07 +0000
committerrubidium <rubidium@openttd.org>2010-01-04 18:21:07 +0000
commit87466a4ed091035b758ef981e6600e2b03cbfe30 (patch)
treeb5a79792fb0f12f7f3a96e400091c1fda26de9c5 /src/economy.cpp
parent71f2789270ca091af14ab4cfd64a4f17234cf007 (diff)
downloadopenttd-87466a4ed091035b758ef981e6600e2b03cbfe30.tar.xz
(svn r18717) -Codechange: use TileArea in industry instead of three separate variables. Also make use of TileArea functions for determining the 'width' and 'height' of an industry.
Diffstat (limited to 'src/economy.cpp')
-rw-r--r--src/economy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/economy.cpp b/src/economy.cpp
index 50eb31775..187b97b5d 100644
--- a/src/economy.cpp
+++ b/src/economy.cpp
@@ -896,7 +896,7 @@ static uint DeliverGoodsToIndustry(const Station *st, CargoID cargo_type, uint n
/* Check if industry temporarily refuses acceptance */
if (HasBit(indspec->callback_mask, CBM_IND_REFUSE_CARGO)) {
- uint16 res = GetIndustryCallback(CBID_INDUSTRY_REFUSE_CARGO, 0, GetReverseCargoTranslation(cargo_type, indspec->grf_prop.grffile), ind, ind->type, ind->xy);
+ uint16 res = GetIndustryCallback(CBID_INDUSTRY_REFUSE_CARGO, 0, GetReverseCargoTranslation(cargo_type, indspec->grf_prop.grffile), ind, ind->type, ind->location.tile);
if (res == 0) continue;
}