diff --git a/src/cargopacket.h b/src/cargopacket.h --- a/src/cargopacket.h +++ b/src/cargopacket.h @@ -443,6 +443,7 @@ public: }; typedef MultiMap StationCargoPacketMap; +typedef std::map StationCargoAmountMap; /** * CargoList that is used for stations. @@ -532,7 +533,7 @@ public: uint Reserve(uint max_move, VehicleCargoList *dest, TileIndex load_place, StationID next); uint Load(uint max_move, VehicleCargoList *dest, TileIndex load_place, StationID next); - uint Truncate(uint max_move = UINT_MAX); + uint Truncate(uint max_move = UINT_MAX, StationCargoAmountMap *cargo_per_source = NULL); uint Reroute(uint max_move, StationCargoList *dest, StationID avoid, StationID avoid2, const GoodsEntry *ge); /**