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

Function ShowSelectRoadWaypointIfNeeded

src/station_gui.cpp:2495–2498  ·  view source on GitHub ↗

* Show the road 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

2493 * @param proc Function called to execute the build command.
2494 */
2495void ShowSelectRoadWaypointIfNeeded(TileArea ta, StationPickerCmdProc proc)
2496{
2497 ShowSelectBaseStationIfNeeded<RoadWaypointTypeFilter>(ta, std::move(proc));
2498}

Callers 1

OnPlaceMouseUpMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected