| 29 | } |
| 30 | |
| 31 | ScriptStationList_Vehicle::ScriptStationList_Vehicle(VehicleID vehicle_id) |
| 32 | { |
| 33 | if (!ScriptVehicle::IsPrimaryVehicle(vehicle_id)) return; |
| 34 | |
| 35 | const Vehicle *v = ::Vehicle::Get(vehicle_id); |
| 36 | |
| 37 | for (const Order &o : v->Orders()) { |
| 38 | if (o.IsType(OT_GOTO_STATION)) this->AddItem(o.GetDestination().ToStationID().base()); |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | ScriptStationList_Cargo::ScriptStationList_Cargo(ScriptStationList_Cargo::CargoMode mode, |
| 43 | ScriptStationList_Cargo::CargoSelector selector, StationID station_id, CargoType cargo, |
nothing calls this directly
no test coverage detected