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

Function MenuClickBuildRail

src/toolbar_gui.cpp:890–895  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

888 * @return #CBF_NONE
889 */
890static CallBackFunction MenuClickBuildRail(int index)
891{
892 _last_built_railtype = (RailType)index;
893 ShowBuildRailToolbar(_last_built_railtype);
894 return CBF_NONE;
895}
896
897/* --- Road button menu --- */
898

Callers

nothing calls this directly

Calls 1

ShowBuildRailToolbarFunction · 0.85

Tested by

no test coverage detected