mirror of https://github.com/OpenTTD/OpenTTD
(svn r9953) -Fix: Only check whether trains are multiheaded when cloning.
parent
3db7a70057
commit
1b33f19877
|
@ -1794,7 +1794,7 @@ int32 CmdCloneVehicle(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
|
||||||
v = v_front;
|
v = v_front;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
if (IsMultiheaded(v) && !IsTrainEngine(v)) {
|
if (v->type == VEH_TRAIN && IsMultiheaded(v) && !IsTrainEngine(v)) {
|
||||||
/* we build the rear ends of multiheaded trains with the front ones */
|
/* we build the rear ends of multiheaded trains with the front ones */
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue