From 766d6d420ef2d9f5565df2e5cea9b37614297708 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 1 Sep 2007 08:04:08 +0000 Subject: (svn r11030) -Revert r11016, Fix [FS#1178]: the way to determine whether a station should get goods was not done properly. --- src/openttd.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/openttd.cpp') diff --git a/src/openttd.cpp b/src/openttd.cpp index f17f459cb..07aaefd3a 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -2169,6 +2169,16 @@ bool AfterLoadGame() } } + if (CheckSavegameVersion(74)) { + Station *st; + FOR_ALL_STATIONS(st) { + for (CargoID c = 0; c < NUM_CARGO; c++) { + st->goods[c].last_speed = 0; + if (st->goods[c].cargo.Count() != 0) SETBIT(st->goods[c].acceptance_pickup, GoodsEntry::PICKUP); + } + } + } + return true; } -- cgit v1.2.3-54-g00ecf