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

Function MenuClickShowRoad

src/toolbar_gui.cpp:810–814  ·  view source on GitHub ↗

* Handle click on the entry in the Road Vehicles menu. * * @param index CompanyID to show road vehicles list for. * @return #CBF_NONE */

Source from the content-addressed store, hash-verified

808 * @return #CBF_NONE
809 */
810static CallBackFunction MenuClickShowRoad(int index)
811{
812 ShowVehicleListWindow((CompanyID)index, VEH_ROAD);
813 return CBF_NONE;
814}
815
816/* --- Ship button menu --- */
817

Callers

nothing calls this directly

Calls 1

ShowVehicleListWindowFunction · 0.85

Tested by

no test coverage detected