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

Function SetSignalsOnBothDir

src/signal.cpp:665–671  ·  view source on GitHub ↗

* Update signals at segments that are at both ends of * given (existent or non-existent) track * * @see UpdateSignalsInBuffer() * @param tile tile where we start * @param track track at which ends we will update signals * @param owner owner whose signals we will update */

Source from the content-addressed store, hash-verified

663 * @param owner owner whose signals we will update
664 */
665void SetSignalsOnBothDir(TileIndex tile, Track track, Owner owner)
666{
667 assert(_globset.IsEmpty());
668
669 AddTrackToSignalBuffer(tile, track, owner);
670 UpdateSignalsInBuffer(owner);
671}

Callers 1

DeleteLastWagonFunction · 0.85

Calls 3

AddTrackToSignalBufferFunction · 0.85
UpdateSignalsInBufferFunction · 0.85
IsEmptyMethod · 0.45

Tested by

no test coverage detected