(svn r17589) -Codechange: rename town_acc to always_accepted

This commit is contained in:
smatz
2009-09-20 17:44:33 +00:00
parent 7f92151e41
commit c3a80f1518
9 changed files with 28 additions and 28 deletions

View File

@@ -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);