diff options
author | rubidium <rubidium@openttd.org> | 2009-10-18 17:52:44 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-10-18 17:52:44 +0000 |
commit | f11cebfe9b09bf5cf815d37ca6a19212755251ab (patch) | |
tree | 664ac4f2e4f2d026dd8612509cdc545e1a0f9e1b /src/cargopacket.h | |
parent | 4ad30fecdee33708bc95a8e790b4c85814c36317 (diff) | |
download | openttd-f11cebfe9b09bf5cf815d37ca6a19212755251ab.tar.xz |
(svn r17807) -Codechange: move all 'updates' just after the 'load' constructor of CargoPackets to the constructor call itself
Diffstat (limited to 'src/cargopacket.h')
-rw-r--r-- | src/cargopacket.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cargopacket.h b/src/cargopacket.h index 75467ae9f..72eceac8d 100644 --- a/src/cargopacket.h +++ b/src/cargopacket.h @@ -74,11 +74,14 @@ public: * Used when loading or splitting packets. * @param count the number of cargo entities to put in this packet * @param days_in_transit number of days the cargo has been in transit + * @param source the station the cargo was initially loaded + * @param source_xy the station location the cargo was initially loaded + * @param loaded_at_xy the location the cargo was loaded last * @param feeder_share feeder share the packet has already accumulated * @param source_type the 'type' of source the packet comes from (for subsidies) * @param source_id the actual source of the packet (for subsidies) */ - CargoPacket(uint16 count, byte days_in_transit, Money feeder_share = 0, SourceType source_type = ST_INDUSTRY, SourceID source_id = INVALID_SOURCE); + CargoPacket(uint16 count, byte days_in_transit, StationID source, TileIndex source_xy, TileIndex loaded_at_xy, Money feeder_share = 0, SourceType source_type = ST_INDUSTRY, SourceID source_id = INVALID_SOURCE); /** Destroy the packet */ ~CargoPacket() { } |