summaryrefslogtreecommitdiff
path: root/src/cargopacket.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cargopacket.h')
-rw-r--r--src/cargopacket.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cargopacket.h b/src/cargopacket.h
index c31e4db58..dc1e66ba2 100644
--- a/src/cargopacket.h
+++ b/src/cargopacket.h
@@ -443,6 +443,7 @@ public:
};
typedef MultiMap<StationID, CargoPacket *> StationCargoPacketMap;
+typedef std::map<StationID, uint> 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);
/**