diff options
Diffstat (limited to 'src/saveload/afterload.cpp')
-rw-r--r-- | src/saveload/afterload.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp index e4069b1bb..d2b886c6d 100644 --- a/src/saveload/afterload.cpp +++ b/src/saveload/afterload.cpp @@ -2072,6 +2072,18 @@ bool AfterLoadGame() st->airport.h = st->GetAirportSpec()->size_y; } } + + Train *t; + FOR_ALL_TRAINS(t) { + /* Copy old GOINGUP / GOINGDOWN flags. */ + if (HasBit(t->flags, 1)) { + ClrBit(t->flags, 1); + SetBit(t->gv_flags, GVF_GOINGUP_BIT); + } else if (HasBit(t->flags, 2)) { + ClrBit(t->flags, 2); + SetBit(t->gv_flags, GVF_GOINGDOWN_BIT); + } + } } /* Road stops is 'only' updating some caches */ |