Mercurial > hg > openttd
changeset 17059:6b83f9415907 draft
(svn r21796) -Fix [FS#4398]: drive through road stop state wasn't properly converted from TTDPatch savegames
author | rubidium <rubidium@openttd.org> |
---|---|
date | Fri, 14 Jan 2011 21:54:37 +0000 |
parents | 2bbacb524f85 |
children | 4b108c239704 |
files | src/saveload/oldloader_sl.cpp |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/saveload/oldloader_sl.cpp +++ b/src/saveload/oldloader_sl.cpp @@ -189,6 +189,10 @@ 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); + } } }