diff options
author | smatz <smatz@openttd.org> | 2009-09-20 17:44:33 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-09-20 17:44:33 +0000 |
commit | 9225b3ba0315bf16322e15b4d71c3b2efc6d93a8 (patch) | |
tree | 0a35e6988310f33c2b662389f8cb65176222ceb7 /src/economy.cpp | |
parent | 2049d60e3460904e167fdd3e653b5e70fa4f0c9f (diff) | |
download | openttd-9225b3ba0315bf16322e15b4d71c3b2efc6d93a8.tar.xz |
(svn r17589) -Codechange: rename town_acc to always_accepted
Diffstat (limited to 'src/economy.cpp')
-rw-r--r-- | src/economy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/economy.cpp b/src/economy.cpp index ccb673bd5..6f5d84391 100644 --- a/src/economy.cpp +++ b/src/economy.cpp @@ -933,7 +933,7 @@ static Money DeliverGoods(int num_pieces, CargoID cargo_type, StationID dest, Ti uint accepted = DeliverGoodsToIndustry(st, cargo_type, num_pieces, src_type == ST_INDUSTRY ? src : INVALID_INDUSTRY); /* If there are non-industries around accepting the cargo, accept it all */ - if (HasBit(st->town_acc, cargo_type)) accepted = num_pieces; + if (HasBit(st->always_accepted, cargo_type)) accepted = num_pieces; /* Determine profit */ Money profit = GetTransportedGoodsIncome(accepted, DistanceManhattan(source_tile, st->xy), days_in_transit, cargo_type); |