Move all free vehicles in the depot to the train */
| 715 | |
| 716 | /** Move all free vehicles in the depot to the train */ |
| 717 | void NormalizeTrainVehInDepot(const Train *u) |
| 718 | { |
| 719 | assert(u->IsEngine()); |
| 720 | for (VehicleID vehicle : GetFreeWagonsInDepot(u->tile)) { |
| 721 | if (Command<CMD_MOVE_RAIL_VEHICLE>::Do(DoCommandFlag::Execute, vehicle, u->index, true).Failed()) { |
| 722 | break; |
| 723 | } |
| 724 | } |
| 725 | } |
| 726 | |
| 727 | static void AddRearEngineToMultiheadedTrain(Train *v) |
| 728 | { |
no test coverage detected