From 9225b3ba0315bf16322e15b4d71c3b2efc6d93a8 Mon Sep 17 00:00:00 2001 From: smatz Date: Sun, 20 Sep 2009 17:44:33 +0000 Subject: (svn r17589) -Codechange: rename town_acc to always_accepted --- src/economy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/economy.cpp') 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); -- cgit v1.2.3-70-g09d2