Changeset - r6784:b9ca75bdd2a4
[Not reviewed]
master
0 1 0
maedhros - 17 years ago 2007-06-02 11:15:38
maedhros@openttd.org
(svn r10022) -Fix (r10007): Set the type of multiheaded trains before the subtype.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/train_cmd.cpp
Show inline comments
 
@@ -623,25 +623,25 @@ static void AddRearEngineToMultiheadedTr
 
	u->tile = v->tile;
 
	u->x_pos = v->x_pos;
 
	u->y_pos = v->y_pos;
 
	u->z_pos = v->z_pos;
 
	u->u.rail.track = TRACK_BIT_DEPOT;
 
	u->vehstatus = v->vehstatus & ~VS_STOPPED;
 
	u = new (u) Train();
 
	u->subtype = 0;
 
	SetMultiheaded(u);
 
	u->spritenum = v->spritenum + 1;
 
	u->cargo_type = v->cargo_type;
 
	u->cargo_subtype = v->cargo_subtype;
 
	u->cargo_cap = v->cargo_cap;
 
	u->u.rail.railtype = v->u.rail.railtype;
 
	if (building) v->next = u;
 
	u->engine_type = v->engine_type;
 
	u->build_year = v->build_year;
 
	if (building) v->value >>= 1;
 
	u->value = v->value;
 
	u = new (u) Train();
 
	u->cur_image = 0xAC2;
 
	u->random_bits = VehicleRandomBits();
 
	VehiclePositionChanged(u);
 
}
 

	
 
/** Build a railroad vehicle.
0 comments (0 inline, 0 general)