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

Function GetClearCounter

src/clear_map.h:108–112  ·  view source on GitHub ↗

* Get the counter used to advance to the next clear density/field type. * @param t the tile to get the counter of * @pre IsTileType(t, MP_CLEAR) * @return the value of the counter */

Source from the content-addressed store, hash-verified

106 * @return the value of the counter
107 */
108inline uint GetClearCounter(Tile t)
109{
110 assert(IsTileType(t, MP_CLEAR));
111 return GB(t.m5(), 5, 3);
112}
113
114/**
115 * Increments the counter used to advance to the next clear density/field type.

Callers 1

TileLoop_ClearFunction · 0.85

Calls 2

IsTileTypeFunction · 0.85
GBFunction · 0.85

Tested by

no test coverage detected