From e5c352818d7edfdc5219e4c82f7d5b2083b2b72d Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 22 Jun 2007 11:58:59 +0000 Subject: (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. --- src/station.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/station.cpp') diff --git a/src/station.cpp b/src/station.cpp index 9ddebb10e..02f165b6f 100644 --- a/src/station.cpp +++ b/src/station.cpp @@ -79,6 +79,10 @@ Station::~Station() free(speclist); xy = 0; + + for (CargoID c = 0; c < NUM_CARGO; c++) { + goods[c].cargo.Truncate(0); + } } void* Station::operator new(size_t size) -- cgit v1.2.3-54-g00ecf