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

Function GetCustomRoadStopSpecIndex

src/station_map.h:678–682  ·  view source on GitHub ↗

* Get the custom road stop spec for this tile. * @param t Tile to query * @pre IsAnyRoadStopTile(t) * @return The custom station spec of this tile. */

Source from the content-addressed store, hash-verified

676 * @return The custom station spec of this tile.
677 */
678inline uint GetCustomRoadStopSpecIndex(Tile t)
679{
680 assert(IsAnyRoadStopTile(t));
681 return GB(t.m8(), 0, 6);
682}
683
684/**
685 * Set the random bits for a station tile.

Callers 5

GetVariableMethod · 0.85
GetRoadStopSpecFunction · 0.85
RemoveRoadStopFunction · 0.85
RemoveRoadWaypointStopFunction · 0.85

Calls 2

IsAnyRoadStopTileFunction · 0.85
GBFunction · 0.85

Tested by

no test coverage detected