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

Function CmdRemoveSignalTrack

src/rail_cmd.cpp:1524–1527  ·  view source on GitHub ↗

* Remove signals on a stretch of track. * Stub for the unified signal builder/remover * @param flags operation to perform * @param tile start tile of drag * @param end_tile end tile of drag * @param track track-orientation * @param autofill fill beyond selected stretch? * @return the cost of this operation or an error * @see CmdSignalTrackHelper */

Source from the content-addressed store, hash-verified

1522 * @see CmdSignalTrackHelper
1523 */
1524CommandCost CmdRemoveSignalTrack(DoCommandFlags flags, TileIndex tile, TileIndex end_tile, Track track, bool autofill)
1525{
1526 return CmdSignalTrackHelper(flags, tile, end_tile, track, SIGTYPE_BLOCK, SIG_ELECTRIC, false, true, autofill, false, 1); // bit 5 is remove bit
1527}
1528
1529/**
1530 * Convert one rail type to the other. You can convert normal rail to

Callers

nothing calls this directly

Calls 1

CmdSignalTrackHelperFunction · 0.85

Tested by

no test coverage detected