diff options
author | frosch <frosch@openttd.org> | 2010-06-21 17:35:27 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-06-21 17:35:27 +0000 |
commit | e931399b316c245a559962a8fcc7c2f14d4abfd4 (patch) | |
tree | 4957227f5b4780b5de5d5cd3c75d7e04d34d6ab8 /src/saveload | |
parent | 3c6fb88a095aa5404807ce26bb3a1529b25f5ffb (diff) | |
download | openttd-e931399b316c245a559962a8fcc7c2f14d4abfd4.tar.xz |
(svn r20005) -Codechange: Enumify force_proceed.
Diffstat (limited to 'src/saveload')
-rw-r--r-- | src/saveload/afterload.cpp | 4 |
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; + } } } |