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

Function UpdateSignalsOnSegment

src/signal.cpp:647–653  ·  view source on GitHub ↗

* Update signals, starting at one side of a tile * Will check tile next to this at opposite side too * * @see UpdateSignalsInBuffer() * @param tile tile where we start * @param side side of tile * @param owner owner whose signals we will update * @return the state of the signal segment */

Source from the content-addressed store, hash-verified

645 * @return the state of the signal segment
646 */
647SigSegState UpdateSignalsOnSegment(TileIndex tile, DiagDirection side, Owner owner)
648{
649 assert(_globset.IsEmpty());
650 _globset.Add(tile, side);
651
652 return UpdateSignalsInBuffer(owner);
653}
654
655
656/**

Callers 7

ReverseTrainDirectionFunction · 0.85
CheckTrainStayInDepotFunction · 0.85
TrainMovedChangeSignalsFunction · 0.85
TrainControllerFunction · 0.85
DeleteLastWagonFunction · 0.85
TrainLocoHandlerFunction · 0.85
VehicleEnterDepotFunction · 0.85

Calls 3

UpdateSignalsInBufferFunction · 0.85
IsEmptyMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected