(svn r21796) -Fix [FS#4398]: drive through road stop state wasn't properly converted from TTDPatch savegames

This commit is contained in:
rubidium 2011-01-14 21:54:37 +00:00
parent 85255ea001
commit 080a941eda
1 changed files with 4 additions and 0 deletions

View File

@ -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);
}
}
}