train_cmd.c
changeset 4293 4b7006c1b5eb
parent 4261 28670f743746
child 4329 0e6e689f66e7
equal deleted inserted replaced
4292:26d8405bb931 4293:4b7006c1b5eb
   621 			v->value = value;
   621 			v->value = value;
   622 //			v->day_counter = 0;
   622 //			v->day_counter = 0;
   623 
   623 
   624 			v->u.rail.railtype = GetEngine(engine)->railtype;
   624 			v->u.rail.railtype = GetEngine(engine)->railtype;
   625 
   625 
   626 			v->build_year = _cur_year;
   626 			v->build_year = _cur_year - BASE_YEAR;
   627 			v->type = VEH_Train;
   627 			v->type = VEH_Train;
   628 			v->cur_image = 0xAC2;
   628 			v->cur_image = 0xAC2;
   629 			v->random_bits = VehicleRandomBits();
   629 			v->random_bits = VehicleRandomBits();
   630 
   630 
   631 			AddArticulatedParts(vl);
   631 			AddArticulatedParts(vl);
   781 			v->u.rail.railtype = e->railtype;
   781 			v->u.rail.railtype = e->railtype;
   782 			_new_vehicle_id = v->index;
   782 			_new_vehicle_id = v->index;
   783 
   783 
   784 			v->service_interval = _patches.servint_trains;
   784 			v->service_interval = _patches.servint_trains;
   785 			v->date_of_last_service = _date;
   785 			v->date_of_last_service = _date;
   786 			v->build_year = _cur_year;
   786 			v->build_year = _cur_year - BASE_YEAR;
   787 			v->type = VEH_Train;
   787 			v->type = VEH_Train;
   788 			v->cur_image = 0xAC2;
   788 			v->cur_image = 0xAC2;
   789 			v->random_bits = VehicleRandomBits();
   789 			v->random_bits = VehicleRandomBits();
   790 
   790 
   791 			v->subtype = 0;
   791 			v->subtype = 0;