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

Function IsCustomRoadStopSpecIndex

src/station_map.h:654–658  ·  view source on GitHub ↗

* Is there a custom road stop spec on this tile? * @param t Tile to query * @pre IsAnyRoadStopTile(t) * @return True if this station is part of a newgrf station. */

Source from the content-addressed store, hash-verified

652 * @return True if this station is part of a newgrf station.
653 */
654inline bool IsCustomRoadStopSpecIndex(Tile t)
655{
656 assert(IsAnyRoadStopTile(t));
657 return GB(t.m8(), 0, 6) != 0;
658}
659
660/**
661 * Set the custom road stop spec for this tile.

Callers 2

GetVariableMethod · 0.85
GetRoadStopSpecFunction · 0.85

Calls 2

IsAnyRoadStopTileFunction · 0.85
GBFunction · 0.85

Tested by

no test coverage detected