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

Function MenuClickBuildRoad

src/toolbar_gui.cpp:911–916  ·  view source on GitHub ↗

* Handle click on the entry in the Build Road menu. * * @param index RoadType to show the build toolbar for. * @return #CBF_NONE */

Source from the content-addressed store, hash-verified

909 * @return #CBF_NONE
910 */
911static CallBackFunction MenuClickBuildRoad(int index)
912{
913 _last_built_roadtype = (RoadType)index;
914 ShowBuildRoadToolbar(_last_built_roadtype);
915 return CBF_NONE;
916}
917
918/* --- Tram button menu --- */
919

Callers

nothing calls this directly

Calls 1

ShowBuildRoadToolbarFunction · 0.85

Tested by

no test coverage detected