equal
deleted
inserted
replaced
1653 new_front = true; |
1653 new_front = true; |
1654 |
1654 |
1655 new_v->current_order = old_v->current_order; |
1655 new_v->current_order = old_v->current_order; |
1656 if (old_v->type == VEH_Train){ |
1656 if (old_v->type == VEH_Train){ |
1657 // move the entire train to the new engine, including the old engine. It will be sold in a moment anyway |
1657 // move the entire train to the new engine, including the old engine. It will be sold in a moment anyway |
1658 DoCommand(0, 0, (new_v->index << 16) | GetNextVehicle(old_v)->index, 1, DC_EXEC, CMD_MOVE_RAIL_VEHICLE); |
1658 if (GetNextVehicle(old_v) != NULL) { |
|
1659 DoCommand(0, 0, (new_v->index << 16) | GetNextVehicle(old_v)->index, 1, DC_EXEC, CMD_MOVE_RAIL_VEHICLE); |
|
1660 } |
1659 new_v->u.rail.shortest_platform[0] = old_v->u.rail.shortest_platform[0]; |
1661 new_v->u.rail.shortest_platform[0] = old_v->u.rail.shortest_platform[0]; |
1660 new_v->u.rail.shortest_platform[1] = old_v->u.rail.shortest_platform[1]; |
1662 new_v->u.rail.shortest_platform[1] = old_v->u.rail.shortest_platform[1]; |
1661 } |
1663 } |
1662 } |
1664 } |
1663 /* We are done setting up the new vehicle. Now we move the cargo from the old one to the new one */ |
1665 /* We are done setting up the new vehicle. Now we move the cargo from the old one to the new one */ |