summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-09-01 08:04:08 +0000
committerrubidium <rubidium@openttd.org>2007-09-01 08:04:08 +0000
commit766d6d420ef2d9f5565df2e5cea9b37614297708 (patch)
tree537bc6b71caed3b98d3d887fd5a2ef1a1d954b5a /src/openttd.cpp
parentdc4c52a3133cea06514f38bb06e0d3ddd7734903 (diff)
downloadopenttd-766d6d420ef2d9f5565df2e5cea9b37614297708.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.cpp10
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;
}