Changeset - r22385:243f05b43a0e
[Not reviewed]
master
0 2 0
frosch - 8 years ago 2016-05-22 11:45:03
frosch@openttd.org
(svn r27580) -Fix [FS#6395]: Set date of last service on construction also for wagons and articulated parts.
2 files changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/articulated_vehicles.cpp
Show inline comments
 
@@ -433,6 +433,7 @@ void AddArticulatedParts(Vehicle *first)
 
		v->x_pos = first->x_pos;
 
		v->y_pos = first->y_pos;
 
		v->z_pos = first->z_pos;
 
		v->date_of_last_service = first->date_of_last_service;
 
		v->build_year = first->build_year;
 
		v->vehstatus = first->vehstatus & ~VS_STOPPED;
 

	
src/train_cmd.cpp
Show inline comments
 
@@ -636,6 +636,7 @@ static CommandCost CmdBuildRailWagon(Til
 

	
 
		v->railtype = rvi->railtype;
 

	
 
		v->date_of_last_service = _date;
 
		v->build_year = _cur_year;
 
		v->cur_image = SPR_IMG_QUERY;
 
		v->random_bits = VehicleRandomBits();
 
@@ -703,6 +704,7 @@ static void AddRearEngineToMultiheadedTr
 
	u->refit_cap = v->refit_cap;
 
	u->railtype = v->railtype;
 
	u->engine_type = v->engine_type;
 
	u->date_of_last_service = v->date_of_last_service;
 
	u->build_year = v->build_year;
 
	u->cur_image = SPR_IMG_QUERY;
 
	u->random_bits = VehicleRandomBits();
0 comments (0 inline, 0 general)