summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-01-14 21:54:37 +0000
committerrubidium <rubidium@openttd.org>2011-01-14 21:54:37 +0000
commit080a941edaea3b234967f8bad76a69d27033a902 (patch)
tree44da6d735d7222b3fee6822ec02cf8d16faba75a /src/saveload
parent85255ea001c975602c5129911b108c03db848471 (diff)
downloadopenttd-080a941edaea3b234967f8bad76a69d27033a902.tar.xz
(svn r21796) -Fix [FS#4398]: drive through road stop state wasn't properly converted from TTDPatch savegames
Diffstat (limited to 'src/saveload')
-rw-r--r--src/saveload/oldloader_sl.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/saveload/oldloader_sl.cpp b/src/saveload/oldloader_sl.cpp
index 68eb22564..f5c3bb144 100644
--- a/src/saveload/oldloader_sl.cpp
+++ b/src/saveload/oldloader_sl.cpp
@@ -189,6 +189,10 @@ void FixOldVehicles()
RoadVehicle *rv = RoadVehicle::From(v);
if (rv->state != RVSB_IN_DEPOT && rv->state != RVSB_WORMHOLE) {
ClrBit(rv->state, 2);
+ if (IsTileType(rv->tile, MP_STATION) && _m[rv->tile].m5 >= 168) {
+ /* Update the vehicle's road state to show we're in a drive through road stop. */
+ SetBit(rv->state, RVS_IN_DT_ROAD_STOP);
+ }
}
}