File diff r2468:320ed1476ffd → r2469:0895d2eace8d
vehicle.c
Show inline comments
 
@@ -2230,13 +2230,13 @@ static void Load_VEHS(void)
 

	
 
		v = GetVehicle(index);
 
		SlObject(v, _veh_descs[SlReadByte()]);
 

	
 
		/* Old savegames used 'last_station_visited = 0xFF', should be 0xFFFF */
 
		if (_sl_version < 5 && v->last_station_visited == 0xFF)
 
			v->last_station_visited = 0xFFFF;
 
			v->last_station_visited = INVALID_STATION;
 

	
 
		if (_sl_version < 5) {
 
			/* Convert the current_order.type (which is a mix of type and flags, because
 
			    in those versions, they both were 4 bits big) to type and flags */
 
			v->current_order.flags = (v->current_order.type & 0xF0) >> 4;
 
			v->current_order.type  =  v->current_order.type & 0x0F;