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

Function ShowSelectRailWaypointIfNeeded

src/station_gui.cpp:2485–2488  ·  view source on GitHub ↗

* Show the rail waypoint selection window when needed. If not, build the waypoint. * @param ta Area to build the waypoint in * @param proc Function called to execute the build command. */

Source from the content-addressed store, hash-verified

2483 * @param proc Function called to execute the build command.
2484 */
2485void ShowSelectRailWaypointIfNeeded(TileArea ta, StationPickerCmdProc proc)
2486{
2487 ShowSelectBaseStationIfNeeded<RailWaypointTypeFilter>(ta, std::move(proc));
2488}
2489
2490/**
2491 * Show the road waypoint selection window when needed. If not, build the waypoint.

Callers 1

OnPlaceMouseUpMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected