summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-06-22 17:33:13 +0000
committerrubidium <rubidium@openttd.org>2007-06-22 17:33:13 +0000
commit96d208d04bb33eec9058d04b95abbfa1e7b2f75f (patch)
treeed209f6fce8898ffe2dea5796751810aff81f186 /src
parent8dff21e421560e882ce8511359848bdcdb1ff3aa (diff)
downloadopenttd-96d208d04bb33eec9058d04b95abbfa1e7b2f75f.tar.xz
(svn r10268) -Fix: some old savegames could have the wrong bits unset (follow up of r10147)
Diffstat (limited to 'src')
-rw-r--r--src/openttd.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index 515b6e5a3..359f2e0b6 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -2061,6 +2061,16 @@ bool AfterLoadGame()
}
}
+ if (CheckSavegameVersion(69)) {
+ /* In some old savegames a bit was cleared when it should not be cleared */
+ Vehicle *v;
+ FOR_ALL_VEHICLES(v) {
+ if (v->type == VEH_ROAD && (v->u.road.state == 250 || v->u.road.state == 251)) {
+ SETBIT(v->u.road.state, RVS_IS_STOPPING);
+ }
+ }
+ }
+
/* Recalculate */
Group *g;
FOR_ALL_GROUPS(g) {