summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-06-21 17:35:27 +0000
committerfrosch <frosch@openttd.org>2010-06-21 17:35:27 +0000
commite931399b316c245a559962a8fcc7c2f14d4abfd4 (patch)
tree4957227f5b4780b5de5d5cd3c75d7e04d34d6ab8 /src/saveload
parent3c6fb88a095aa5404807ce26bb3a1529b25f5ffb (diff)
downloadopenttd-e931399b316c245a559962a8fcc7c2f14d4abfd4.tar.xz
(svn r20005) -Codechange: Enumify force_proceed.
Diffstat (limited to 'src/saveload')
-rw-r--r--src/saveload/afterload.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp
index 55eee19ba..467e24fa2 100644
--- a/src/saveload/afterload.cpp
+++ b/src/saveload/afterload.cpp
@@ -2012,7 +2012,9 @@ bool AfterLoadGame()
if (CheckSavegameVersion(131)) {
Train *t;
FOR_ALL_TRAINS(t) {
- t->force_proceed = min<byte>(t->force_proceed, 1);
+ if (t->force_proceed != TFP_NONE) {
+ t->force_proceed = TFP_STUCK;
+ }
}
}