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

Function SetHouseProcessingTime

src/town_map.h:347–351  ·  view source on GitHub ↗

* Set the amount of time remaining before the tile loop processes this tile. * @param t the house tile * @param time the time to be set * @pre IsTileType(t, MP_HOUSE) */

Source from the content-addressed store, hash-verified

345 * @pre IsTileType(t, MP_HOUSE)
346 */
347inline void SetHouseProcessingTime(Tile t, uint8_t time)
348{
349 assert(IsTileType(t, MP_HOUSE));
350 SB(t.m6(), 2, 6, time);
351}
352
353/**
354 * Decrease the amount of time remaining before the tile loop processes this tile.

Callers 2

MakeHouseTileFunction · 0.85
NewHouseTileLoopFunction · 0.85

Calls 2

IsTileTypeFunction · 0.85
SBFunction · 0.85

Tested by

no test coverage detected