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

Function GetLiftPosition

src/town_map.h:147–150  ·  view source on GitHub ↗

* Get the position of the lift on this animated house * @param t the tile * @return position, from 0 to 36 */

Source from the content-addressed store, hash-verified

145 * @return position, from 0 to 36
146 */
147inline uint8_t GetLiftPosition(Tile t)
148{
149 return GB(t.m6(), 2, 6);
150}
151
152/**
153 * Set the position of the lift on this animated house

Callers 2

TownDrawHouseLiftFunction · 0.85
AnimateTile_TownFunction · 0.85

Calls 1

GBFunction · 0.85

Tested by

no test coverage detected