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

Function ShowSelectStationIfNeeded

src/station_gui.cpp:2475–2478  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2473 * @param proc Function called to execute the build command.
2474 */
2475void ShowSelectStationIfNeeded(TileArea ta, StationPickerCmdProc proc)
2476{
2477 ShowSelectBaseStationIfNeeded<StationTypeFilter>(ta, std::move(proc));
2478}
2479
2480/**
2481 * Show the rail waypoint selection window when needed. If not, build the waypoint.

Callers 5

OnPlaceObjectMethod · 0.85
PlaceAirportFunction · 0.85
PlaceRail_StationFunction · 0.85
HandleStationPlacementFunction · 0.85
PlaceRoadStopFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected