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

Function IsSignalPresent

src/rail_map.h:403–406  ·  view source on GitHub ↗

* Checks whether the given signals is present * @param t the tile to check on * @param signalbit the signal * @return true if and only if the signal is present */

Source from the content-addressed store, hash-verified

401 * @return true if and only if the signal is present
402 */
403inline bool IsSignalPresent(Tile t, uint8_t signalbit)
404{
405 return HasBit(GetPresentSignals(t), signalbit);
406}
407
408/**
409 * Checks for the presence of signals (either way) on the given track on the

Callers 1

DrawSignalsFunction · 0.85

Calls 2

HasBitFunction · 0.85
GetPresentSignalsFunction · 0.85

Tested by

no test coverage detected