* Show the timetable for a given vehicle. * @param v The vehicle to show the timetable for. */
| 854 | * @param v The vehicle to show the timetable for. |
| 855 | */ |
| 856 | void ShowTimetableWindow(const Vehicle *v) |
| 857 | { |
| 858 | CloseWindowById(WC_VEHICLE_DETAILS, v->index, false); |
| 859 | CloseWindowById(WC_VEHICLE_ORDERS, v->index, false); |
| 860 | AllocateWindowDescFront<TimetableWindow>(_timetable_desc, v->index); |
| 861 | } |
no test coverage detected