summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-12-16 16:23:44 +0000
committerrubidium <rubidium@openttd.org>2009-12-16 16:23:44 +0000
commitfbfcbe06ec90777a514c42fd928cce2721718891 (patch)
treeeec4b8b8104e1db3c1a3388185406454df047cdd /src/saveload
parentd46127a7237ddd815872941c36bbbd6f7f379852 (diff)
downloadopenttd-fbfcbe06ec90777a514c42fd928cce2721718891.tar.xz
(svn r18515) -Change: make it visible when you're to pass the next signal on danger and possible to cancel it
-Fix [FS#2891]: when you pass a signal at danger, in a PBS controlled area, don't try to do the 'safe' thing and stop, but continue going; the user wanted the train to pass the signal at danger so (s)he has to suffer the consequences. Ofcourse one can always stop the train manually.
Diffstat (limited to 'src/saveload')
-rw-r--r--src/saveload/afterload.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp
index beba40d2d..8116b6d17 100644
--- a/src/saveload/afterload.cpp
+++ b/src/saveload/afterload.cpp
@@ -1967,6 +1967,15 @@ bool AfterLoadGame()
}
}
+ /* The behaviour of force_proceed has been changed. Now
+ * it counts signals instead of some random time out. */
+ if (CheckSavegameVersion(131)) {
+ Train *t;
+ FOR_ALL_TRAINS(t) {
+ t->force_proceed = min<byte>(t->force_proceed, 1);
+ }
+ }
+
/* Road stops is 'only' updating some caches */
AfterLoadRoadStops();
AfterLoadLabelMaps();