(svn r27580) -Fix [FS#6395]: Set date of last service on construction also for wagons and articulated parts.
This commit is contained in:
@@ -433,6 +433,7 @@ void AddArticulatedParts(Vehicle *first)
|
|||||||
v->x_pos = first->x_pos;
|
v->x_pos = first->x_pos;
|
||||||
v->y_pos = first->y_pos;
|
v->y_pos = first->y_pos;
|
||||||
v->z_pos = first->z_pos;
|
v->z_pos = first->z_pos;
|
||||||
|
v->date_of_last_service = first->date_of_last_service;
|
||||||
v->build_year = first->build_year;
|
v->build_year = first->build_year;
|
||||||
v->vehstatus = first->vehstatus & ~VS_STOPPED;
|
v->vehstatus = first->vehstatus & ~VS_STOPPED;
|
||||||
|
|
||||||
|
@@ -636,6 +636,7 @@ static CommandCost CmdBuildRailWagon(TileIndex tile, DoCommandFlag flags, const
|
|||||||
|
|
||||||
v->railtype = rvi->railtype;
|
v->railtype = rvi->railtype;
|
||||||
|
|
||||||
|
v->date_of_last_service = _date;
|
||||||
v->build_year = _cur_year;
|
v->build_year = _cur_year;
|
||||||
v->cur_image = SPR_IMG_QUERY;
|
v->cur_image = SPR_IMG_QUERY;
|
||||||
v->random_bits = VehicleRandomBits();
|
v->random_bits = VehicleRandomBits();
|
||||||
@@ -703,6 +704,7 @@ static void AddRearEngineToMultiheadedTrain(Train *v)
|
|||||||
u->refit_cap = v->refit_cap;
|
u->refit_cap = v->refit_cap;
|
||||||
u->railtype = v->railtype;
|
u->railtype = v->railtype;
|
||||||
u->engine_type = v->engine_type;
|
u->engine_type = v->engine_type;
|
||||||
|
u->date_of_last_service = v->date_of_last_service;
|
||||||
u->build_year = v->build_year;
|
u->build_year = v->build_year;
|
||||||
u->cur_image = SPR_IMG_QUERY;
|
u->cur_image = SPR_IMG_QUERY;
|
||||||
u->random_bits = VehicleRandomBits();
|
u->random_bits = VehicleRandomBits();
|
||||||
|
Reference in New Issue
Block a user