Commit Graph

20 Commits

Author SHA1 Message Date
rubidium 985608c713 (svn r16694) -Fix [FS#2995] (rgradual loading, rnewindustries): only pay for whatever has been actually unloaded and perform the payment when unloading has finished. This fixes, amongst others:
* cheating by starting to unload and after getting paid rushing to the depot to get sold (or unloading, loading and getting paid again for the remainder)
 * cargo being dropped onto a station at the moment a stockpiling industry doesn't accept it anymore
 * industries getting cargo that has not been unloaded yet and subsequently dumping it back on the station in one go
Note: you will now get paid after the unloading has finished, so you'll have to wait a bit longer for 'your' money.
2009-06-29 19:55:36 +00:00
smatz b178a94c19 (svn r16459) -Codechange: move definition of several cargopacket accessors to header file 2009-05-29 15:46:55 +00:00
smatz 62a7948af0 (svn r16378) -Codechange: replace OldPool with simpler Pool. Compilation time, binary size and run time (with asserts disabled) should be improved 2009-05-22 15:13:50 +00:00
smatz 6221d74644 (svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index) 2009-05-16 23:34:14 +00:00
smatz 0d3f5e6e74 (svn r15299) -Cleanup: remove many redundant includes 2009-01-31 20:16:06 +00:00
smatz 7368c740a6 (svn r14828) -Codechange: move most of save/load-specific code to separate files 2009-01-04 15:32:25 +00:00
glx 7b78084150 (svn r14235) -Fix (r14234): compilation with MSVC was broken 2008-09-03 13:25:56 +00:00
smatz b6962222ee (svn r14234) -Fix: feeder share was computed wrong when splitting cargo packet 2008-09-03 10:30:07 +00:00
celestar 7e8c7dfcbf (svn r14137) -Codechange: Remove a now unused member of CargoPacket 2008-08-23 09:31:53 +00:00
skidd13 9335a28cb5 (svn r13647) -Codechange: replace MAX_UVALUE() for std types with the equivalent constant 2008-06-27 17:46:43 +00:00
bjarni dbf6e344a4 (svn r12940) -Fix [FS#1974](r12913): [autoreplace] a vehicle backup should include the cargo packets in the vehicle as well 2008-05-04 10:05:35 +00:00
smatz 6af1fb2bdd (svn r12599) -Codechange: force AllocateSafeRaw() to be linked to simplify compiler's decisions about inlining 2008-04-06 23:49:45 +00:00
rubidium 2edd403656 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h. 2008-03-31 00:06:17 +00:00
peter1138 592e22cc3a (svn r12120) -Cleanup: const-ify parameters when checking for same cargopacket source. 2008-02-12 11:46:29 +00:00
rubidium ac5fde61fb (svn r11002) -Codechange: unhackify the cargo packet list saving (a little). 2007-08-30 12:10:32 +00:00
rubidium cab6275511 (svn r10749) -Codechange: use the generic pool item class as super class for cargo packets, which results in a nice reduction of code duplication. 2007-08-02 10:49:24 +00:00
rubidium 435d39f8fb (svn r10743) -Fix: some typos introduces by copy-pasting. 2007-08-01 19:13:42 +00:00
peter1138 fe2e9ea795 (svn r10404) -Fix (r10266): Adding a cargo packet to cargo list could overflow. Now we detect this and just leave the cargo in its own packet. 2007-07-01 12:25:08 +00:00
rubidium be35df3f03 (svn r10297) -Codechange: increase the performance of CargoPacket::AllocateRaw using a very simple "caching" system. 2007-06-23 20:38:28 +00:00
rubidium e5c352818d (svn r10266) -Codechange: keep track of the origin, time of travel and accumulated feeder share (transfers) of individual pieces of cargo. This means that cargo isn't thrown on a big pile when it's put in a station or unloaded at a station, however the GUI does not reflect these changes yet so you will not actually see it. 2007-06-22 11:58:59 +00:00