Changeset - r17049:957450fb8e4e
[Not reviewed]
master
0 1 0
rubidium - 14 years ago 2011-01-14 21:54:37
rubidium@openttd.org
(svn r21796) -Fix [FS#4398]: drive through road stop state wasn't properly converted from TTDPatch savegames
1 file changed with 4 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/saveload/oldloader_sl.cpp
Show inline comments
 
@@ -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);
 
				}
 
			}
 
		}
 

	
0 comments (0 inline, 0 general)