diff options
author | rubidium <rubidium@openttd.org> | 2007-09-01 08:04:08 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-09-01 08:04:08 +0000 |
commit | 0df355bbda0e97edb0c642188db663620dd2e4f6 (patch) | |
tree | 537bc6b71caed3b98d3d887fd5a2ef1a1d954b5a /src/openttd.cpp | |
parent | 1f7f4f6f6265b7c3f40e01501974ec9810c946d2 (diff) | |
download | openttd-0df355bbda0e97edb0c642188db663620dd2e4f6.tar.xz |
(svn r11030) -Revert r11016, Fix [FS#1178]: the way to determine whether a station should get goods was not done properly.
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r-- | src/openttd.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
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; } |