mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-20 04:59:11 +00:00
(svn r21796) -Fix [FS#4398]: drive through road stop state wasn't properly converted from TTDPatch savegames
This commit is contained in:
@@ -189,6 +189,10 @@ void FixOldVehicles()
|
|||||||
RoadVehicle *rv = RoadVehicle::From(v);
|
RoadVehicle *rv = RoadVehicle::From(v);
|
||||||
if (rv->state != RVSB_IN_DEPOT && rv->state != RVSB_WORMHOLE) {
|
if (rv->state != RVSB_IN_DEPOT && rv->state != RVSB_WORMHOLE) {
|
||||||
ClrBit(rv->state, 2);
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user