MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / RefreshVehicleList

Method RefreshVehicleList

src/depot_gui.cpp:732–743  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 2

OnPaintMethod · 0.95

Calls 2

BuildDepotVehicleListFunction · 0.85
DepotSortListFunction · 0.85

Tested by

no test coverage detected