Changeset - r10965:5c2c4767f2d6
[Not reviewed]
master
0 1 0
frosch - 16 years ago 2009-02-01 11:38:18
frosch@openttd.org
(svn r15304) -Fix [FS#2587]: When loading savegames use the roadtype of the front vehicles just like it is done on construction.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/saveload/vehicle_sl.cpp
Show inline comments
 
@@ -331,7 +331,7 @@ void AfterLoadVehicles(bool part_of_load
 
	FOR_ALL_VEHICLES(v) {
 
		switch (v->type) {
 
			case VEH_ROAD:
 
				v->u.road.roadtype = HasBit(EngInfo(v->engine_type)->misc_flags, EF_ROAD_TRAM) ? ROADTYPE_TRAM : ROADTYPE_ROAD;
 
				v->u.road.roadtype = HasBit(EngInfo(v->First()->engine_type)->misc_flags, EF_ROAD_TRAM) ? ROADTYPE_TRAM : ROADTYPE_ROAD;
 
				v->u.road.compatible_roadtypes = RoadTypeToRoadTypes(v->u.road.roadtype);
 
				/* FALL THROUGH */
 
			case VEH_TRAIN:
0 comments (0 inline, 0 general)