mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r21796) -Fix [FS#4398]: drive through road stop state wasn't properly converted from TTDPatch savegames
This commit is contained in:
parent
85255ea001
commit
080a941eda
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue