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

Function CmdRemoveRailroadTrack

src/rail_cmd.cpp:945–948  ·  view source on GitHub ↗

* Build rail on a stretch of track. * Stub for the unified rail builder/remover * @param flags operation to perform * @param end_tile end tile of drag * @param start_tile start tile of drag * @param track track-orientation * @return the cost of this operation or an error * @see CmdRailTrackHelper */

Source from the content-addressed store, hash-verified

943 * @see CmdRailTrackHelper
944 */
945CommandCost CmdRemoveRailroadTrack(DoCommandFlags flags, TileIndex end_tile, TileIndex start_tile, Track track)
946{
947 return CmdRailTrackHelper(flags, start_tile, end_tile, INVALID_RAILTYPE, track, true, false, false);
948}
949
950/**
951 * Build a train depot

Callers

nothing calls this directly

Calls 1

CmdRailTrackHelperFunction · 0.85

Tested by

no test coverage detected