| 730 | } |
| 731 | |
| 732 | void RefreshVehicleList() |
| 733 | { |
| 734 | if (this->generate_list) { |
| 735 | /* Generate the vehicle list |
| 736 | * It's ok to use the wagon pointers for non-trains as they will be ignored */ |
| 737 | BuildDepotVehicleList(this->type, TileIndex(this->window_number), &this->vehicle_list, &this->wagon_list); |
| 738 | this->generate_list = false; |
| 739 | DepotSortList(&this->vehicle_list); |
| 740 | |
| 741 | this->check_unitnumber_digits = true; |
| 742 | } |
| 743 | } |
| 744 | |
| 745 | void OnPaint() override |
| 746 | { |
no test coverage detected