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

Function GetHouseProcessingTime

src/town_map.h:335–339  ·  view source on GitHub ↗

* Get the amount of time remaining before the tile loop processes this tile. * @param t the house tile * @pre IsTileType(t, MP_HOUSE) * @return time remaining */

Source from the content-addressed store, hash-verified

333 * @return time remaining
334 */
335inline uint8_t GetHouseProcessingTime(Tile t)
336{
337 assert(IsTileType(t, MP_HOUSE));
338 return GB(t.m6(), 2, 6);
339}
340
341/**
342 * Set the amount of time remaining before the tile loop processes this tile.

Callers 1

NewHouseTileLoopFunction · 0.85

Calls 2

IsTileTypeFunction · 0.85
GBFunction · 0.85

Tested by

no test coverage detected