Loading

Paste #pvs9p04um

  1. Index: src/economy.cpp
  2. ===================================================================
  3. --- src/economy.cpp (revision 27655)
  4. +++ src/economy.cpp (working copy)
  5. @@ -1109,7 +1109,7 @@
  6.     st->town->received[cs->town_effect].new_act += accepted;
  7.  
  8.     /* Determine profit */
  9. -   Money profit = GetTransportedGoodsIncome(accepted, DistanceManhattan(source_tile, st->xy), days_in_transit, cargo_type);
  10. +   Money profit = GetTransportedGoodsIncome(accepted, DistanceMaxPlusManhattan(source_tile, st->xy) / 2, days_in_transit, cargo_type);
  11.  
  12.     /* Update the cargo monitor. */
  13.     AddCargoDelivery(cargo_type, company->index, accepted, src_type, src, st);
  14. @@ -1230,7 +1230,7 @@
  15.     Money profit = GetTransportedGoodsIncome(
  16.             count,
  17.             /* pay transfer vehicle for only the part of transfer it has done: ie. cargo_loaded_at_xy to here */
  18. -           DistanceManhattan(cp->LoadedAtXY(), Station::Get(this->current_station)->xy),
  19. +           DistanceMaxPlusManhattan(cp->LoadedAtXY(), Station::Get(this->current_station)->xy) / 2,
  20.             cp->DaysInTransit(),
  21.             this->ct);

Comments